This commit is contained in:
@@ -477,10 +477,19 @@ Here are all the API level error codes that can be returned by the API server:
|
||||
return o.target == ref;
|
||||
});
|
||||
|
||||
//if a target was hit then need to trigger validate again for it to remove the error message
|
||||
if (m.length > 0) {
|
||||
var ctrl = getControl(v, ref);
|
||||
ctrl.errorMessages=[];
|
||||
}
|
||||
// //if a target was hit then need to trigger validate again for it to remove the error message
|
||||
//NOTHING SEEMS TO BE ABLE TO TRIGGER THIS
|
||||
|
||||
// if (m.length > 0) {
|
||||
// var ctrl = getControl(v, ref);
|
||||
// //ctrl.validate(true);
|
||||
// // ctrl.errorMessages.length=0;
|
||||
|
||||
// // var frm=getControl(v,"form");
|
||||
// // frm.validate();
|
||||
// }
|
||||
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<v-layout v-if="this.formReady">
|
||||
<v-flex>
|
||||
<v-form ref="form">
|
||||
<v-layout align-center justify-left row wrap>
|
||||
<v-layout align-center justify-left row wrap>
|
||||
<v-flex xs12 mt-1 mb-2>
|
||||
<v-alert
|
||||
ref="errorbox"
|
||||
@@ -178,13 +178,13 @@ export default {
|
||||
someerror:
|
||||
"blah blahv <br/> blah blah" + "\n test line 3" + "\r\n Test line 4"
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
Change(ref){
|
||||
},
|
||||
methods: {
|
||||
Change(ref) {
|
||||
//debugger;
|
||||
//console.log("CHANGE - " + ref);
|
||||
this.$gzv.Change(this,ref);
|
||||
} ,
|
||||
this.$gzv.Change(this, ref);
|
||||
},
|
||||
getDataFromApi() {
|
||||
var url = "Widget/" + this.$route.params.id;
|
||||
this.$gzapi.get(url).then(res => {
|
||||
@@ -198,8 +198,14 @@ export default {
|
||||
|
||||
var that = this;
|
||||
var url = "Widget/" + this.$route.params.id;
|
||||
//clear any errors that might be around from previous submit
|
||||
this.serverErrors = [];
|
||||
|
||||
//clear any errors that might be around from previous submit
|
||||
for (var variableKey in this.serverError) {
|
||||
if (this.serverError.hasOwnProperty(variableKey)) {
|
||||
delete this.serverError[variableKey];
|
||||
}
|
||||
}
|
||||
|
||||
this.$gzapi
|
||||
.upsert(url, this.obj)
|
||||
.then(res => {
|
||||
|
||||
Reference in New Issue
Block a user