From 084bea6b15c66d9e685769d486c24b3147d34918 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 27 Nov 2022 14:19:22 -0600 Subject: [PATCH] Update:Collections i18n strings --- client/pages/collection/_id.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/client/pages/collection/_id.vue b/client/pages/collection/_id.vue index f783d079..12c52322 100644 --- a/client/pages/collection/_id.vue +++ b/client/pages/collection/_id.vue @@ -59,8 +59,7 @@ export default { }, data() { return { - processingRemove: false, - collectionCopy: {} + processingRemove: false } }, computed: { @@ -105,19 +104,18 @@ export default { this.$store.commit('globals/setEditCollection', this.collection) }, removeClick() { - if (confirm(`Are you sure you want to remove collection "${this.collectionName}"?`)) { + if (confirm(this.$getString('MessageConfirmRemoveCollection', [this.collectionName]))) { this.processingRemove = true - var collectionName = this.collectionName this.$axios .$delete(`/api/collections/${this.collection.id}`) .then(() => { this.processingRemove = false - this.$toast.success(`Collection "${collectionName}" Removed`) + this.$toast.success(this.$strings.ToastCollectionRemoveSuccess) }) .catch((error) => { console.error('Failed to remove collection', error) this.processingRemove = false - this.$toast.error(`Failed to remove collection`) + this.$toast.error(this.$strings.ToastCollectionRemoveFailed) }) } },