Simplify: "renameFail" and "removeFail" toasts

This commit is contained in:
Nicholas Wallace 2024-08-30 10:13:50 -07:00
parent 71c0b2bca3
commit 9311fd10bc
12 changed files with 19 additions and 23 deletions

View file

@ -121,7 +121,7 @@ export default {
})
.catch((error) => {
console.error('Failed to remove author', error)
this.$toast.error(this.$strings.ToastAuthorRemoveFailed)
this.$toast.error(this.$strings.ToastRemoveFailed)
})
.finally(() => {
this.processing = false
@ -174,7 +174,7 @@ export default {
})
.catch((error) => {
console.error('Failed', error)
this.$toast.error(this.$strings.ToastAuthorImageRemoveFailed)
this.$toast.error(this.$strings.ToastRemoveFailed)
})
.finally(() => {
this.processing = false
@ -201,7 +201,7 @@ export default {
})
.catch((error) => {
console.error('Failed', error)
this.$toast.error(error.response.data || this.$strings.ToastAuthorImageRemoveFailed)
this.$toast.error(error.response.data || this.$strings.ToastRemoveFailed)
})
.finally(() => {
this.processing = false