From 14121ee64d22615e1434f8d5f7f38174b0061b99 Mon Sep 17 00:00:00 2001 From: Mike Risher Date: Fri, 13 Sep 2019 21:53:42 +0000 Subject: [PATCH] lp1843640 Standing Penalty Followup 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 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 --- .../src/eg2/src/app/staff/admin/local/standing-penalty.component.html | 3 +++ .../src/eg2/src/app/staff/admin/local/standing-penalty.component.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/standing-penalty.component.html b/Open-ILS/src/eg2/src/app/staff/admin/local/standing-penalty.component.html index e8cfaf047a..aefc58d640 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/standing-penalty.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/standing-penalty.component.html @@ -2,7 +2,10 @@ + + + diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/standing-penalty.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/standing-penalty.component.ts index c8a2559e98..3bd1d7550b 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/standing-penalty.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/standing-penalty.component.ts @@ -97,6 +97,10 @@ export class StandingPenaltyComponent implements OnInit { ); }; + this.grid.onRowActivate.subscribe( + (idlThing: IdlObject) => this.showEditDialog(idlThing) + ); + } cspReadonlyOverride = (field: string, csp: IdlObject): boolean => { -- 2.11.0