From: Bill Erickson Date: Mon, 5 Apr 2021 15:01:52 +0000 (-0400) Subject: LP1904036 Messages X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=16282b10cf3467fbc2cbdf809e6a8f180300a16e;p=working%2FEvergreen.git LP1904036 Messages Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- 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(); } + }); } }