Add translation strings for toasts, update data load toasts to use generic failed to load data message

This commit is contained in:
advplyr
2024-05-13 16:58:41 -05:00
parent b8ed56e91e
commit 8c6c43657c
44 changed files with 331 additions and 46 deletions

View File

@ -89,11 +89,11 @@ export default {
this.$axios
.$delete(`/api/items/${this.libraryItemId}/file/${this.file.ino}`)
.then(() => {
this.$toast.success('File deleted')
this.$toast.success(this.$strings.ToastDeleteFileSuccess)
})
.catch((error) => {
console.error('Failed to delete file', error)
this.$toast.error('Failed to delete file')
this.$toast.error(this.$strings.ToastDeleteFileFailed)
})
}
},
@ -107,4 +107,4 @@ export default {
},
mounted() {}
}
</script>
</script>