implement item deletion in cards
This commit is contained in:
parent
ae3812434d
commit
cba05f545f
1 changed files with 8 additions and 3 deletions
|
@ -46,9 +46,14 @@
|
||||||
<h6 class="card-title">{{ item.description }}</h6>
|
<h6 class="card-title">{{ item.description }}</h6>
|
||||||
<h6 class="card-subtitle text-secondary">uid: {{ item.uid }} box: {{ item.box }}</h6>
|
<h6 class="card-subtitle text-secondary">uid: {{ item.uid }} box: {{ item.box }}</h6>
|
||||||
<div class="row mx-auto mt-2">
|
<div class="row mx-auto mt-2">
|
||||||
|
<div class="btn-group">
|
||||||
<button class="btn btn-outline-secondary" @click.stop="openEditingModalWith(item)">
|
<button class="btn btn-outline-secondary" @click.stop="openEditingModalWith(item)">
|
||||||
Edit
|
Edit
|
||||||
</button>
|
</button>
|
||||||
|
<button class="btn btn-outline-secondary" @click.stop="deleteItem(item)">
|
||||||
|
Delete
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Cards>
|
</Cards>
|
||||||
|
|
Loading…
Reference in a new issue