allow to edit tag from dropdown

This commit is contained in:
Gamebrary 2021-06-19 13:44:08 -07:00
parent 2b53334019
commit 278696527a
2 changed files with 10 additions and 2 deletions

View file

@ -12,9 +12,16 @@
<i class="fas fa-ellipsis-h fa-fw" aria-hidden />
</template>
<b-dropdown-item @click="$emit('selected', name)">
<b-dropdown-item @click="$emit('edit', name)">
Edit
</b-dropdown-item>
<b-dropdown-item
variant="danger"
@click="$emit('delete', name)"
>
Delete
</b-dropdown-item>
</b-dropdown>
<b-badge

View file

@ -23,7 +23,8 @@
<tags-list
v-if="gameTags && localTags"
@selected="editTag"
@edit="editTag"
@delete="promptDeleteTag"
/>
</template>