This commit is contained in:
2021-06-01 18:50:29 +00:00
parent 8ee2586dda
commit 99897f233c
2 changed files with 6 additions and 3 deletions

View File

@@ -380,6 +380,7 @@ TODO: V7 features on wo I haven't coded yet
bugbug: empty collection, save, add new item but don't save then click on delete and save and it all goes weird
on save, it seems to be trying to save the newly added but deleted record when it should just remove it and get on with it
bugbug: deleting task error at server, steps were to add a task but not fill it out, then add a task group, then click on delete the empty task then save
todo: Outside services list section header only one with word "List" in it instead of plural form outside services
todo: workorderitemlabor new record stop date sb +1 hour

View File

@@ -39,7 +39,7 @@
</v-menu>
</v-col>
<template>
<template v-if="hasData">
<!-- ################################ WORK ORDER ITEMS TABLE ############################### -->
<v-col cols="12" class="mb-10">
<v-data-table
@@ -84,7 +84,7 @@
</v-data-table>
</v-col>
</template>
<template v-if="hasData">
<template v-if="hasData && hasSelection">
<v-btn
v-if="canDelete && isDeleted"
large
@@ -819,9 +819,11 @@ and it's probably not a big list to fill anyway
return this.pvm.formCustomTemplateKey;
},
hasData: function() {
return this.value.items.length > 0;
},
hasSelection: function() {
return this.activeItemIndex != null;
},
canAdd: function() {
return (
!this.pvm.formState.readOnly &&