This commit is contained in:
2021-04-15 19:12:14 +00:00
parent a5ddcb5017
commit 171ae84f5b
4 changed files with 35 additions and 27 deletions

View File

@@ -146,7 +146,9 @@ export default {
//it's a previously saved item so it needs to be removed at the server too
this.$emit("graph-item-deleted", {
atype: window.$gz.type.WorkOrderItemScheduledUser,
id: o.id
id: o.id,
objectIndex: this.activeItemIndex,
woItemIndex: this.activeWoItemIndex
});
}
this.value.items[this.activeWoItemIndex].scheduledUsers.splice(

View File

@@ -163,7 +163,8 @@ export default {
//it's a previously saved item so it needs to be removed at the server too
this.$emit("graph-item-deleted", {
atype: window.$gz.type.WorkOrderItem,
id: o.id
id: o.id,
objectIndex: this.activeItemIndex
});
}
this.value.items.splice(this.activeItemIndex, 1);