fixed some remains from old vee validate

This commit is contained in:
Tobias Kurze
2020-08-05 07:50:13 +02:00
parent f9dc51770f
commit 0f3291266a
11 changed files with 400 additions and 391 deletions

View File

@@ -739,14 +739,16 @@
saveRecorder() {
this.$parent.$data.isLoading = true;
recorderRepository.createRecorder(this.form)
.then(() => {
.then((result) => {
console.info(result);
this.$store.dispatch('loadRecorders')
.then(() => {
this.$parent.$data.isLoading = false;
this.tabIndex = 0;
});
}).catch((msg) => {
this.showErrorMessage('Could not safe recorder!');
}).catch((error) => {
console.error("could not safe recorder! ("+error.data+")");
this.$parent.showErrorMessage('Could not safe recorder!');
});
},
deleteRecorder(id) {
@@ -759,11 +761,11 @@
});
});
},
showErrorMessage(msg) {
this.$parent.$data.isLoading = false;
this.$parent.$data.showAlert = true;
this.$parent.$data.alertMessage = msg;
},
//showErrorMessage(msg) {
// this.$parent.$data.isLoading = false;
// this.$parent.$data.showAlert = true;
// this.$parent.$data.alertMessage = msg;
//},
filterShowAllRecorders(){
this.onlyShowOfflineRecorders = false;
this.onlyShowNonOfflineRecorders = false;