Delete item button from item viewer

This commit is contained in:
ThaumRystra
2024-05-29 00:23:29 +02:00
parent 4b7035b5a5
commit 3dacfa170c
3 changed files with 18 additions and 0 deletions

View File

@@ -49,6 +49,7 @@
:key="_id"
:model="model"
@select-sub-property="selectSubProperty"
@remove="remove"
/>
</v-fade-transition>
</template>

View File

@@ -53,6 +53,7 @@
class="property-viewer"
:model="model"
@select-sub-property="id => selectSubProperty(id)"
@remove="$emit('remove')"
/>
<v-row dense>
<template

View File

@@ -20,6 +20,22 @@
@change="changeQuantity"
/>
</property-field>
<property-field
name="Delete"
center
>
<v-btn
outlined
style="font-size: 18px;"
class="ma-2"
:color="'primary'"
icon
:disabled="!context.editPermission"
@click="$emit('remove')"
>
<v-icon>mdi-delete</v-icon>
</v-btn>
</property-field>
<property-field
v-if="model.value !== undefined"
name="value"