From 16282b10cf3467fbc2cbdf809e6a8f180300a16e Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 5 Apr 2021 11:01:52 -0400 Subject: [PATCH] LP1904036 Messages Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/circ/patron/messages.component.html | 3 +++ Open-ILS/src/eg2/src/app/staff/circ/patron/messages.component.ts | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/messages.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/messages.component.html index 0bd5d19617..88b567531f 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/messages.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/messages.component.html @@ -1,4 +1,7 @@ + + +

Penalties and Messages

diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/messages.component.ts b/Open-ILS/src/eg2/src/app/staff/circ/patron/messages.component.ts index 5d388c6b7f..352ff39834 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/messages.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/messages.component.ts @@ -11,6 +11,8 @@ import {GridDataSource, GridColumn, GridCellTextGenerator} from '@eg/share/grid/ import {GridComponent} from '@eg/share/grid/grid.component'; import {Pager} from '@eg/share/util/pager'; import {DateUtil} from '@eg/share/util/date'; +import {PatronPenaltyDialogComponent + } from '@eg/staff/share/patron/penalty-dialog.component'; @Component({ selector: 'eg-patron-messages', @@ -28,6 +30,8 @@ export class PatronMessagesComponent implements OnInit { @ViewChild('mainGrid') private mainGrid: GridComponent; @ViewChild('archiveGrid') private archiveGrid: GridComponent; + @ViewChild('penaltyDialog') + private penaltyDialog: PatronPenaltyDialogComponent constructor( private org: OrgService, @@ -115,6 +119,9 @@ export class PatronMessagesComponent implements OnInit { } applyPenalty() { + this.penaltyDialog.open().subscribe(changes => { + if (changes) { this.mainGrid.reload(); } + }); } } -- 2.11.0