mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-11 20:01:38 +00:00
Update: Details tab
This commit is contained in:
parent
621bb2e02b
commit
01494fd4d8
2 changed files with 13 additions and 12 deletions
|
|
@ -92,7 +92,7 @@ export default {
|
||||||
|
|
||||||
var { title, author } = this.$refs.itemDetailsEdit.getTitleAndAuthorName()
|
var { title, author } = this.$refs.itemDetailsEdit.getTitleAndAuthorName()
|
||||||
if (!title) {
|
if (!title) {
|
||||||
this.$toast.error('Must have a title for quick match')
|
this.$toast.error(this.$strings.ToastItemQuickMatchTitleRequired)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.quickMatching = true
|
this.quickMatching = true
|
||||||
|
|
@ -108,9 +108,9 @@ export default {
|
||||||
if (res.warning) {
|
if (res.warning) {
|
||||||
this.$toast.warning(res.warning)
|
this.$toast.warning(res.warning)
|
||||||
} else if (res.updated) {
|
} else if (res.updated) {
|
||||||
this.$toast.success('Item details updated')
|
this.$toast.success(this.$strings.ToastItemDetailsUpdateSuccess)
|
||||||
} else {
|
} else {
|
||||||
this.$toast.info('No updates were made')
|
this.$toast.info(this.$strings.ToastItemDetailsUpdateUnneeded)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|
@ -128,18 +128,18 @@ export default {
|
||||||
this.rescanning = false
|
this.rescanning = false
|
||||||
var result = data.result
|
var result = data.result
|
||||||
if (!result) {
|
if (!result) {
|
||||||
this.$toast.error(`Re-Scan Failed for "${this.title}"`)
|
this.$toast.error(this.$getString('ToastRescanFailed', [this.title]))
|
||||||
} else if (result === 'UPDATED') {
|
} else if (result === 'UPDATED') {
|
||||||
this.$toast.success(`Re-Scan complete item was updated`)
|
this.$toast.success(this.$strings.ToastRescanUpdated)
|
||||||
} else if (result === 'UPTODATE') {
|
} else if (result === 'UPTODATE') {
|
||||||
this.$toast.success(`Re-Scan complete item was up to date`)
|
this.$toast.success(this.$strings.ToastRescanUpToDate)
|
||||||
} else if (result === 'REMOVED') {
|
} else if (result === 'REMOVED') {
|
||||||
this.$toast.error(`Re-Scan complete item was removed`)
|
this.$toast.error(this.$strings.ToastRescanRemoved)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to scan library item', error)
|
console.error('Failed to scan library item', error)
|
||||||
this.$toast.error('Failed to scan library item')
|
this.$toast.error(this.$strings.ToastScanFailed)
|
||||||
this.rescanning = false
|
this.rescanning = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
@ -156,7 +156,7 @@ export default {
|
||||||
}
|
}
|
||||||
var updatedDetails = this.$refs.itemDetailsEdit.getDetails()
|
var updatedDetails = this.$refs.itemDetailsEdit.getDetails()
|
||||||
if (!updatedDetails.hasChanges) {
|
if (!updatedDetails.hasChanges) {
|
||||||
this.$toast.info('No changes were made')
|
this.$toast.info(this.$strings.MessageNoUpdatesWereNecessary)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return this.updateDetails(updatedDetails)
|
return this.updateDetails(updatedDetails)
|
||||||
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
this.isProcessing = false
|
this.isProcessing = false
|
||||||
if (updateResult) {
|
if (updateResult) {
|
||||||
if (updateResult.updated) {
|
if (updateResult.updated) {
|
||||||
this.$toast.success('Item details updated')
|
this.$toast.success(this.$strings.MessageItemDetailsUpdated)
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
this.$toast.info(this.$strings.MessageNoUpdatesWereNecessary)
|
this.$toast.info(this.$strings.MessageNoUpdatesWereNecessary)
|
||||||
|
|
|
||||||
|
|
@ -863,6 +863,7 @@
|
||||||
"ToastItemMarkedAsFinishedSuccess": "Item marked as Finished",
|
"ToastItemMarkedAsFinishedSuccess": "Item marked as Finished",
|
||||||
"ToastItemMarkedAsNotFinishedFailed": "Failed to mark as Not Finished",
|
"ToastItemMarkedAsNotFinishedFailed": "Failed to mark as Not Finished",
|
||||||
"ToastItemMarkedAsNotFinishedSuccess": "Item marked as Not Finished",
|
"ToastItemMarkedAsNotFinishedSuccess": "Item marked as Not Finished",
|
||||||
|
"ToastItemQuickMatchTitleRequired": "Must have a title for Quick Match",
|
||||||
"ToastItemUpdateFailed": "Failed to update item",
|
"ToastItemUpdateFailed": "Failed to update item",
|
||||||
"ToastItemUpdateSuccess": "Item updated",
|
"ToastItemUpdateSuccess": "Item updated",
|
||||||
"ToastLibraryCreateFailed": "Failed to create library",
|
"ToastLibraryCreateFailed": "Failed to create library",
|
||||||
|
|
@ -897,7 +898,7 @@
|
||||||
"ToastRemoveItemsWithIssuesSuccess": "Removed library items with issues",
|
"ToastRemoveItemsWithIssuesSuccess": "Removed library items with issues",
|
||||||
"ToastRemoveItemFromCollectionFailed": "Failed to remove item from collection",
|
"ToastRemoveItemFromCollectionFailed": "Failed to remove item from collection",
|
||||||
"ToastRemoveItemFromCollectionSuccess": "Item removed from collection",
|
"ToastRemoveItemFromCollectionSuccess": "Item removed from collection",
|
||||||
"ToastRescanFailed": "Re-Scan Failed for \"{0}\"",
|
"ToastRescanFailed": "Re-Scan Failed for {0}",
|
||||||
"ToastRescanRemoved": "Re-Scan complete item was removed",
|
"ToastRescanRemoved": "Re-Scan complete item was removed",
|
||||||
"ToastRescanUpToDate": "Re-Scan complete item was up to date",
|
"ToastRescanUpToDate": "Re-Scan complete item was up to date",
|
||||||
"ToastRescanUpdated": "Re-Scan complete item was updated",
|
"ToastRescanUpdated": "Re-Scan complete item was updated",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue