// for displayMode === 'inline'
@Input() hideBanner: boolean;
+ // do not close dialog on error saving record
+ @Input() remainOpenOnError: false;
+
// Emit the modified object when the save action completes.
@Output() recordSaved = new EventEmitter<IdlObject>();
error => {
this.recordError.emit(error);
this.failStr.current().then(msg => this.toast.warning(msg));
- if (this.isDialog()) { this.error(error); }
+ if (this.isDialog() && !this.remainOpenOnError) { this.error(error); }
}
);
}
error => {
this.recordError.emit(error);
this.failStr.current().then(msg => this.toast.warning(msg));
- if (this.isDialog()) { this.error(error); }
+ if (this.isDialog() && !this.remainOpenOnError) { this.error(error); }
}
);
});