diff --git a/src/pages/Tags.vue b/src/pages/Tags.vue index 38cd9884..632c656c 100644 --- a/src/pages/Tags.vue +++ b/src/pages/Tags.vue @@ -61,7 +61,7 @@ @click="submit" > - Add tag + {{ $t('tags.form.addTag')}} {{ $t('tags.list.title') }} - - - - {{ name }} - + + + + + {{ name }} + - + + {{ games.length }} {{ $t('global.games') }} + + + + - - - + + + - - - - + :title="$t('tags.edit.title')" + @close="close" + /> - + Cancel @@ -317,6 +323,22 @@ export default { this.saveTags(); }, + promptDeleteTag(tagName) { + this.$bvModal.msgBoxConfirm(this.$t('tags.delete.message'), { + title: this.$t('tags.delete.title'), + okVariant: 'danger', + okTitle: this.$t('tags.delete.buttonLabel'), + cancelTitle: this.$t('global.cancel'), + headerClass: 'pb-0 border-0', + footerClass: 'pt-0 border-0', + }) + .then((value) => { + if (value) { + this.deleteTag(tagName); + } + }); + }, + deleteTag(tagName) { this.$delete(this.localTags, tagName); this.saveTags(true);