progressively working deploy scenario
This commit is contained in:
@@ -50,6 +50,13 @@ export class AdminEventFormComponent implements OnChanges {
|
||||
this.active = event.active;
|
||||
}
|
||||
|
||||
formatError(err: any): string {
|
||||
if (err?.error?.detail) return err.error.detail;
|
||||
if (err?.error?.message) return err.error.message;
|
||||
if (err?.message) return err.message;
|
||||
return 'Failed to save. Please try again.';
|
||||
}
|
||||
|
||||
reset(): void {
|
||||
this.id = null;
|
||||
this.date = '';
|
||||
|
||||
Reference in New Issue
Block a user