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

@@ -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 &&