Unhandled errors fixed CR JUAN

This commit is contained in:
gerard 2018-05-11 11:20:37 +02:00
parent 85aa3b0156
commit 7a60211023
1 changed files with 4 additions and 4 deletions

View File

@ -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() {