This commit is contained in:
2019-04-04 00:11:27 +00:00
parent 8636fd8b8b
commit 35f2757e94
3 changed files with 43 additions and 14 deletions

View File

@@ -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();
// }
}
};

View File

@@ -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 => {