Unhandled errors fixed CR JUAN
This commit is contained in:
parent
85aa3b0156
commit
7a60211023
|
@ -153,18 +153,18 @@ export default class Watcher extends Component {
|
|||
resolve(json);
|
||||
}
|
||||
|
||||
noChanges(resolve) {
|
||||
noChanges(reject) {
|
||||
this.vnApp.showMessage(
|
||||
this.$translate.instant('No changes to save')
|
||||
);
|
||||
resolve();
|
||||
reject(new Error('No changes to save'));
|
||||
}
|
||||
|
||||
invalidForm(resolve) {
|
||||
invalidForm(reject) {
|
||||
this.vnApp.showMessage(
|
||||
this.$translate.instant('Some fields are invalid')
|
||||
);
|
||||
resolve();
|
||||
reject(new Error('Some fields are invalid'));
|
||||
}
|
||||
|
||||
updateOriginalData() {
|
||||
|
|
Loading…
Reference in New Issue