mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 04:11:43 +00:00
Change: chapters remove toast
This commit is contained in:
parent
9b6a20aeca
commit
f99e01984d
3 changed files with 5 additions and 3 deletions
|
|
@ -611,7 +611,7 @@ export default {
|
||||||
.$post(`/api/items/${this.libraryItem.id}/chapters`, payload)
|
.$post(`/api/items/${this.libraryItem.id}/chapters`, payload)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
if (data.updated) {
|
if (data.updated) {
|
||||||
this.$toast.success('Chapters removed')
|
this.$toast.success(this.$strings.ToastChaptersRemoved)
|
||||||
if (this.previousRoute) {
|
if (this.previousRoute) {
|
||||||
this.$router.push(this.previousRoute)
|
this.$router.push(this.previousRoute)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -290,7 +290,7 @@ export default {
|
||||||
this.$axios
|
this.$axios
|
||||||
.$post(`/api/sessions/batch/delete`, payload)
|
.$post(`/api/sessions/batch/delete`, payload)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$toast.success('Sessions removed')
|
this.$toast.success(this.$strings.ToastSessionsRemoved)
|
||||||
if (isAllSessions) {
|
if (isAllSessions) {
|
||||||
// If all sessions were removed from the current page then go to the previous page
|
// If all sessions were removed from the current page then go to the previous page
|
||||||
if (this.currentPage > 0) {
|
if (this.currentPage > 0) {
|
||||||
|
|
@ -303,7 +303,7 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
const errorMsg = error.response?.data || 'Failed to remove sessions'
|
const errorMsg = error.response?.data || this.$strings.ToastRemoveFailed
|
||||||
this.$toast.error(errorMsg)
|
this.$toast.error(errorMsg)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|
|
||||||
|
|
@ -834,6 +834,7 @@
|
||||||
"ToastCachePurgeSuccess": "Cache purged successfully",
|
"ToastCachePurgeSuccess": "Cache purged successfully",
|
||||||
"ToastChaptersHaveErrors": "Chapters have errors",
|
"ToastChaptersHaveErrors": "Chapters have errors",
|
||||||
"ToastChaptersMustHaveTitles": "Chapters must have titles",
|
"ToastChaptersMustHaveTitles": "Chapters must have titles",
|
||||||
|
"ToastChaptersRemoved": "Chapters removed",
|
||||||
"ToastCollectionItemsAddFailed": "Item(s) added to collection failed",
|
"ToastCollectionItemsAddFailed": "Item(s) added to collection failed",
|
||||||
"ToastCollectionItemsAddSuccess": "Item(s) added to collection success",
|
"ToastCollectionItemsAddSuccess": "Item(s) added to collection success",
|
||||||
"ToastCollectionItemsRemoveSuccess": "Item(s) removed from collection",
|
"ToastCollectionItemsRemoveSuccess": "Item(s) removed from collection",
|
||||||
|
|
@ -924,6 +925,7 @@
|
||||||
"ToastServerSettingsUpdateSuccess": "Server settings updated",
|
"ToastServerSettingsUpdateSuccess": "Server settings updated",
|
||||||
"ToastSessionDeleteFailed": "Failed to delete session",
|
"ToastSessionDeleteFailed": "Failed to delete session",
|
||||||
"ToastSessionDeleteSuccess": "Session deleted",
|
"ToastSessionDeleteSuccess": "Session deleted",
|
||||||
|
"ToastSessionsRemoved": "Sessions removed",
|
||||||
"ToastSlugMustChange": "Slug contains invalid characters",
|
"ToastSlugMustChange": "Slug contains invalid characters",
|
||||||
"ToastSlugRequired": "Slug is required",
|
"ToastSlugRequired": "Slug is required",
|
||||||
"ToastSocketConnected": "Socket connected",
|
"ToastSocketConnected": "Socket connected",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue