}
applyPenalty() {
- this.penaltyDialog.open().subscribe(changes => {
- if (changes) { this.mainGrid.reload(); }
+ this.penaltyDialog.penalty = null;
+ this.penaltyDialog.open({size: 'lg'}).subscribe(changes => {
+ if (changes) {
+ this.context.refreshPatron()
+ .then(_ => this.mainGrid.reload());
+ }
});
}
let modified = false;
from(penalties).pipe(concatMap(penalty => {
this.penaltyDialog.penalty = penalty;
- return this.penaltyDialog.open().pipe(tap(changed => {
+ return this.penaltyDialog.open({size: 'lg'}).pipe(tap(changed => {
if (changed) { modified = true; }
}));
})).toPromise().then(_ => {