This commit is contained in:
2021-04-13 00:29:42 +00:00
parent 351d091f22
commit a046322b14
4 changed files with 65 additions and 25 deletions

View File

@@ -311,7 +311,7 @@ and it's probably not a big list to fill anyway
},
canAdd: function() {
return (
!this.value.isLockedAtServer &&
!this.pvm.formState.readOnly &&
this.pvm.rights.change &&
this.pvm.subRights.items.create
);
@@ -319,7 +319,7 @@ and it's probably not a big list to fill anyway
canDelete: function() {
return (
this.activeItemIndex != null &&
!this.value.isLockedAtServer &&
!this.pvm.formState.readOnly &&
this.pvm.rights.change &&
this.pvm.subRights.items.delete
);

View File

@@ -111,8 +111,10 @@ export default {
userId: window.$gz.store.state.userId,
created: window.$gz.locale.nowUTC8601String()
});
//flag header itself as dirty
this.value.isDirty = true;
//this.value.isDirty = true; //Not sure why this is here
//flag form dirty
this.pvm.formState.dirty = true;
}