This commit is contained in:
2019-04-08 20:53:38 +00:00
parent c36fb3dd17
commit fda9dcddda
3 changed files with 40 additions and 18 deletions

View File

@@ -176,6 +176,7 @@ export default {
obj: {},
serverError: {},
errorBoxMessage: null,
appError:null,
formReady: false
};
},
@@ -186,6 +187,7 @@ export default {
getDataFromApi() {
var url = "Widget/" + this.$route.params.id;
var that = this;
this.$gzv.DeleteAllErrorBoxErrors(this);
this.$gzapi
.get(url)
.then(res => {
@@ -202,7 +204,7 @@ export default {
var url = "Widget/" + this.$route.params.id;
//clear any errors that might be around from previous submit
this.$gzv.ClearServerErrors(this);
this.$gzv.DeleteAllErrorBoxErrors(this);
//this.$gzutil.RemoveAllPropertiesFromObject(this.serverError);
this.$gzapi
@@ -225,9 +227,6 @@ export default {
.catch(function(error) {
that.$gzHandleFormError(error, true);
});
} else {
//say something so the user knows there is an issue
alert("STUB: You can't do that, there are broken rules");
}
} //end of submit()
}