3
0

Fix code-snippets translations

This commit is contained in:
Mumbi Francis 2024-08-23 18:12:43 +03:00
parent 3b2d5b616c
commit f2b6c4a879

View File

@ -251,7 +251,7 @@ export default {
this.codeSnippets = [] this.codeSnippets = []
} }
}) })
.catch(this.toastErrorHandler(this.$t('notification:settings.codeSnippet.fetch.error'))) .catch(this.toastErrorHandler(this.$t('notification:settings.code-snippet.fetch.error')))
.finally(() => { .finally(() => {
this.decLoader() this.decLoader()
}) })
@ -263,12 +263,12 @@ export default {
.then(() => { .then(() => {
this.animateSuccess('codeSnippet') this.animateSuccess('codeSnippet')
if (action === 'delete') { if (action === 'delete') {
this.toastSuccess(this.$t('notification:settings.codeSnippet.delete.success')) this.toastSuccess(this.$t('notification:settings.code-snippet.delete.success'))
} else { } else {
this.toastSuccess(this.$t('notification:settings.codeSnippet.update.success')) this.toastSuccess(this.$t('notification:settings.code-snippet.update.success'))
} }
}) })
.catch(this.toastErrorHandler(this.$t('notification:settings.codeSnippet.update.error'))) .catch(this.toastErrorHandler(this.$t('notification:settings.code-snippet.update.error')))
.finally(() => { .finally(() => {
this.codeSnippet.processing = false this.codeSnippet.processing = false
}) })