@ViewChild('editDialog') editDialog: FmRecordEditorComponent;
@ViewChild('successString') successString: StringComponent;
@ViewChild('createString') createString: StringComponent;
+ @ViewChild('createErrString') createErrString: StringComponent;
+ @ViewChild('updateFailedString') updateFailedString: StringComponent;
@ViewChild('translator') translator: TranslateComponent;
idlClassDef: any;
.then(str => this.toast.success(str));
this.grid.reload();
},
- err => {}
+ err => {
+ this.createErrString.current()
+ .then(str => this.toast.danger(str));
+ }
);
};
.then(str => this.toast.success(str));
this.grid.reload();
},
- err => {}
+ err => {
+ this.updateFailedString.current()
+ .then(str => this.toast.danger(str));
+ }
);
}