From d5706f6dd7f2c82696189fb59c1159380a2e5d29 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 24 May 2021 20:13:05 +0000 Subject: [PATCH] --- .../src/components/work-order-item-tasks.vue | 148 ++++++++---------- 1 file changed, 68 insertions(+), 80 deletions(-) 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 ); } }