fixed some remains from old vee validate
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user