This commit is contained in:
@@ -143,7 +143,7 @@ export default {
|
||||
let o = this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||
this.activeItemIndex
|
||||
];
|
||||
|
||||
console.log("scheduserdelete", o);
|
||||
if (o.id != 0) {
|
||||
//it's a previously saved item so it needs to be removed at the server too
|
||||
this.$emit("graph-item-deleted", {
|
||||
@@ -307,7 +307,7 @@ IN ORDER: start, stop, quantity, user, rate
|
||||
},
|
||||
canDelete: function() {
|
||||
return (
|
||||
this.pvm.hasSelectedScheduledUserItem &&
|
||||
this.activeItemIndex != null &&
|
||||
!this.value.isLockedAtServer &&
|
||||
this.pvm.rights.change &&
|
||||
this.pvm.subRights.scheduledUsers.delete
|
||||
|
||||
@@ -85,6 +85,7 @@
|
||||
:pvm="pvm"
|
||||
:active-wo-item-index="activeItemIndex"
|
||||
data-cy="woItemScheduledUsers"
|
||||
@graph-item-deleted="$emit('graph-item-deleted', $event)"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user