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',
@ViewChild('mainGrid') private mainGrid: GridComponent;
@ViewChild('archiveGrid') private archiveGrid: GridComponent;
+ @ViewChild('penaltyDialog')
+ private penaltyDialog: PatronPenaltyDialogComponent
constructor(
private org: OrgService,
}
applyPenalty() {
+ this.penaltyDialog.open().subscribe(changes => {
+ if (changes) { this.mainGrid.reload(); }
+ });
}
}