Adds low feedback mode to podcast downloads

This commit is contained in:
Tony Edwards 2023-11-30 18:20:09 +00:00
parent e6c1874cbb
commit aca348e783
3 changed files with 24 additions and 8 deletions

View file

@ -40,6 +40,10 @@ export default {
},
isIos() {
return this.$platform === 'ios'
},
isLowFeedback() {
console.log('isLowFeedback', this.$store.state.deviceData.deviceSettings.enableLowFeedbackMode)
return this.$store.state.deviceData.deviceSettings.enableLowFeedbackMode
}
},
methods: {
@ -56,7 +60,9 @@ export default {
if (!data.localLibraryItem) {
this.$toast.error(this.$strings.MessageItemDownloadCompleteFailedToCreate)
} else {
if (!isLowFeedback) this.$toast.success(`Item "${data.localLibraryItem.media.metadata.title}" download finished`)
if (!this.isLowFeedback) {
this.$toast.success(`Item "${data.localLibraryItem.media.metadata.title}" download finished`)
}
this.$eventBus.$emit('new-local-library-item', data.localLibraryItem)
}