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