lp1843640 Standing Penalty Followup
authorMike Risher <mrisher@catalyte.io>
Fri, 13 Sep 2019 21:53:42 +0000 (21:53 +0000)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 27 Dec 2019 21:20:28 +0000 (16:20 -0500)
Fix 2 issues:  grid not updating when a new record is created and
double clicking a row doesn't edit it

Signed-off-by: Mike Risher <mrisher@catalyte.io>

Changes to be committed:
modified:   Open-ILS/src/eg2/src/app/staff/admin/local/standing-penalty.component.html
modified:   Open-ILS/src/eg2/src/app/staff/admin/local/standing-penalty.component.ts

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>

Open-ILS/src/eg2/src/app/staff/admin/local/standing-penalty.component.html
Open-ILS/src/eg2/src/app/staff/admin/local/standing-penalty.component.ts

index e8cfaf0..aefc58d 100644 (file)
@@ -2,7 +2,10 @@
 <eg-staff-banner bannerText="Standing Penalty Types" i18n-bannerText>
 </eg-staff-banner>
 
+<eg-string #createString i18n-text text="New Standing Penalty Added"></eg-string>
+<eg-string #createErrString i18n-text text="Failed to Create New Standing Penalty"></eg-string>
 <eg-string #successString i18n-text text="Standing Penalty Update Succeeded"></eg-string>
+<eg-string #updateFailedString i18n-text text="Standing Penalty Update Failed"></eg-string>
 <eg-string #deleteFailedString i18n-text text="Delete of Standing Penalty failed or was not allowed"></eg-string>
 <eg-string #deleteSuccessString i18n-text text="Delete of Standing Penalty succeeded"></eg-string>
 <eg-string #cspFlairTooltip i18n-text text="Limited Editing"></eg-string>
index c8a2559..3bd1d75 100644 (file)
@@ -97,6 +97,10 @@ export class StandingPenaltyComponent implements OnInit {
             );
         };
 
+        this.grid.onRowActivate.subscribe(
+            (idlThing: IdlObject) => this.showEditDialog(idlThing)
+        );
+
     }
 
     cspReadonlyOverride = (field: string, csp: IdlObject): boolean => {