From: Mike Risher <mrisher@catalyte.io> Date: Fri, 13 Sep 2019 21:53:42 +0000 (+0000) Subject: lp1843640 Standing Penalty Followup X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=14121ee64d22615e1434f8d5f7f38174b0061b99;p=contrib%2FConifer.git 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 <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> --- 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 @@ <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> 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 => {