Adds download success toasts to low feedback mode

This commit is contained in:
Tony Edwards 2023-11-30 13:23:36 +00:00
parent 1b06dbd78c
commit e6c1874cbb
2 changed files with 16 additions and 9 deletions

View file

@ -158,6 +158,9 @@ export default {
},
podcast() {
return this.episode.podcast || {}
},
isLowFeedback() {
return this.$store.state.deviceData.deviceSettings.enableLowFeedbackMode
}
},
methods: {
@ -216,6 +219,9 @@ export default {
console.log('Local folder', JSON.stringify(localFolder))
if (isLowFeedback) {
this.startDownload(localFolder)
} else {
var startDownloadMessage = `Start download for "${this.title}" to folder ${localFolder.name}?`
const { value } = await Dialog.confirm({
title: 'Confirm',
@ -224,6 +230,7 @@ export default {
if (value) {
this.startDownload(localFolder)
}
}
},
async startDownload(localFolder) {
var payload = {

View file

@ -56,7 +56,7 @@ export default {
if (!data.localLibraryItem) {
this.$toast.error(this.$strings.MessageItemDownloadCompleteFailedToCreate)
} else {
this.$toast.success(`Item "${data.localLibraryItem.media.metadata.title}" download finished`)
if (!isLowFeedback) this.$toast.success(`Item "${data.localLibraryItem.media.metadata.title}" download finished`)
this.$eventBus.$emit('new-local-library-item', data.localLibraryItem)
}