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