This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
data-cy="woHeader"
|
||||
@change="setDirty()"
|
||||
/>
|
||||
{{ formState }}
|
||||
<GzWoItems
|
||||
v-model="obj"
|
||||
:form-key="formCustomTemplateKey"
|
||||
@@ -349,7 +350,12 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
setDirty: function() {
|
||||
//console.log("WO HEADER SET DIRTY!! TRIGGERED");
|
||||
this.formState.dirty = true;
|
||||
// window.$gz.form.setFormState({
|
||||
// vm: this,
|
||||
// dirty: true
|
||||
// });
|
||||
},
|
||||
canSave: function() {
|
||||
return this.formState.valid && this.formState.dirty;
|
||||
|
||||
Reference in New Issue
Block a user