Change: cancel encode toasts

This commit is contained in:
Nicholas Wallace 2024-08-30 09:57:29 -07:00
parent 74b0d145ac
commit da1b60a1c6
2 changed files with 4 additions and 2 deletions

View file

@ -331,11 +331,11 @@ export default {
this.$axios
.$delete(`/api/tools/item/${this.libraryItemId}/encode-m4b`)
.then(() => {
this.$toast.success('Encode canceled')
this.$toast.success(this.$strings.ToastEncodeCancelSucces)
})
.catch((error) => {
console.error('Failed to cancel encode', error)
this.$toast.error('Failed to cancel encode')
this.$toast.error(this.$strings.ToastEncodeCancelFailed)
})
.finally(() => {
this.isCancelingEncode = false

View file

@ -91,6 +91,8 @@
"ButtonShiftTimes": "Shift Times",
"ButtonShow": "Show",
"ButtonStartM4BEncode": "Start M4B Encode",
"ToastEncodeCancelSucces": "Encode canceled",
"ToastEncodeCancelFailed": "Failed to cancel encode",
"ButtonStartMetadataEmbed": "Start Metadata Embed",
"ButtonStats": "Stats",
"ButtonSubmit": "Submit",