mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 18:24:46 +02:00
Replace failed to update toasts with one generic string
This commit is contained in:
parent
c5ecd35fe9
commit
562c30cff4
23 changed files with 27 additions and 44 deletions
|
@ -148,7 +148,7 @@ export default {
|
|||
var result = await this.$axios.$patch(`/api/authors/${this.authorId}`, updatePayload).catch((error) => {
|
||||
console.error('Failed', error)
|
||||
const errorMsg = error.response ? error.response.data : null
|
||||
this.$toast.error(errorMsg || this.$strings.ToastAuthorUpdateFailed)
|
||||
this.$toast.error(errorMsg || this.$strings.ToastFailedToUpdate)
|
||||
return null
|
||||
})
|
||||
if (result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue