This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user