This commit is contained in:
2019-04-23 18:02:48 +00:00
parent 98ed94e0b8
commit d6e6b006ae
2 changed files with 40 additions and 14 deletions

View File

@@ -147,6 +147,8 @@
<script>
/* eslint-disable */
import Vue from "vue";
function clickHandler(menuItem) {
if (!menuItem) {
return;
@@ -292,12 +294,13 @@ export default {
//tried to set nexttick as latest attempt, but it's not working
//tried to defer validation until form is loaded but that's also not working for some reason
//wtf is going on here???
vm.nextTick(function() {
Vue.nextTick(function() {
vm.formValid = true;
vm.formDirty = false;
vm.formLoading = false;
});
}
this.formLoading = false;
})
.catch(function handleGetDataFromAPIError(error) {
vm.formLoading = false;
@@ -323,7 +326,10 @@ export default {
vm.$gzv.setErrorBoxErrors(vm);
} else {
//It's ok, form is saved
vm.formDirty = false;
Vue.nextTick(function() {
// vm.formValid = true;
vm.formDirty = false;
});
//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) {