mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-11 03:41:42 +00:00
Change: cancel encode toasts
This commit is contained in:
parent
74b0d145ac
commit
da1b60a1c6
2 changed files with 4 additions and 2 deletions
|
|
@ -331,11 +331,11 @@ export default {
|
||||||
this.$axios
|
this.$axios
|
||||||
.$delete(`/api/tools/item/${this.libraryItemId}/encode-m4b`)
|
.$delete(`/api/tools/item/${this.libraryItemId}/encode-m4b`)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$toast.success('Encode canceled')
|
this.$toast.success(this.$strings.ToastEncodeCancelSucces)
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to cancel encode', error)
|
console.error('Failed to cancel encode', error)
|
||||||
this.$toast.error('Failed to cancel encode')
|
this.$toast.error(this.$strings.ToastEncodeCancelFailed)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.isCancelingEncode = false
|
this.isCancelingEncode = false
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,8 @@
|
||||||
"ButtonShiftTimes": "Shift Times",
|
"ButtonShiftTimes": "Shift Times",
|
||||||
"ButtonShow": "Show",
|
"ButtonShow": "Show",
|
||||||
"ButtonStartM4BEncode": "Start M4B Encode",
|
"ButtonStartM4BEncode": "Start M4B Encode",
|
||||||
|
"ToastEncodeCancelSucces": "Encode canceled",
|
||||||
|
"ToastEncodeCancelFailed": "Failed to cancel encode",
|
||||||
"ButtonStartMetadataEmbed": "Start Metadata Embed",
|
"ButtonStartMetadataEmbed": "Start Metadata Embed",
|
||||||
"ButtonStats": "Stats",
|
"ButtonStats": "Stats",
|
||||||
"ButtonSubmit": "Submit",
|
"ButtonSubmit": "Submit",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue