This commit is contained in:
2019-04-04 18:05:59 +00:00
parent 67d46052c7
commit 108338dbeb
5 changed files with 33 additions and 13 deletions

View File

@@ -196,17 +196,13 @@ export default {
var url = "Widget/" + this.$route.params.id;
//clear any errors that might be around from previous submit
this.$gzv.RemoveAllProperties(this.serverError);
this.$gzutil.RemoveAllPropertiesFromObject(this.serverError);
this.$gzapi
.upsert(url, this.obj)
.then(res => {
if (res.error) {
//debugger;
//Set errors so form can pick them up for controls in canHasServerErrors
that.serverError = res.error;
// that.$refs.form.resetValidation();
// that.$refs.form.validate();
if (res.error) {
that.serverError = res.error;
} else {
//Logic for detecting if a post or put: if id then it was a post, if no id then it was a put
if (res.id) {