diff --git a/ayanova/src/components/work-order-item-tasks.vue b/ayanova/src/components/work-order-item-tasks.vue index a74a99f9..9ad44acc 100644 --- a/ayanova/src/components/work-order-item-tasks.vue +++ b/ayanova/src/components/work-order-item-tasks.vue @@ -89,27 +89,25 @@ xl="3" > @@ -321,24 +318,24 @@ > { + return this.value.items[this.activeWoItemIndex].tasks.map((x, i) => { return { index: i, id: x.id, @@ -727,16 +715,16 @@ export default { return this.pvm.formCustomTemplateKey; }, showTable: function() { - return this.value.items[this.activeWoItemIndex].expenses.length > 1; + return this.value.items[this.activeWoItemIndex].tasks.length > 1; }, canAdd: function() { - return this.pvm.rights.change && this.pvm.subRights.expenses.create; + return this.pvm.rights.change && this.pvm.subRights.tasks.create; }, canDelete: function() { return ( this.activeItemIndex != null && this.pvm.rights.change && - this.pvm.subRights.expenses.delete + this.pvm.subRights.tasks.delete ); } }