This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user