Adds hiding audio book feedback promt/toast

This commit is contained in:
Tony Edwards
2023-12-05 07:31:03 +00:00
parent aca348e783
commit 78448894d2
2 changed files with 27 additions and 20 deletions
+4
View File
@@ -398,6 +398,9 @@ export default {
console.log('Local folder', JSON.stringify(localFolder)) console.log('Local folder', JSON.stringify(localFolder))
if (this.isLowFeedback) {
this.startDownload(localFolder)
} else {
const startDownloadMessage = `Start download for "${this.title}" to folder ${localFolder.name}?` const startDownloadMessage = `Start download for "${this.title}" to folder ${localFolder.name}?`
const { value } = await Dialog.confirm({ const { value } = await Dialog.confirm({
title: 'Confirm', title: 'Confirm',
@@ -406,6 +409,7 @@ export default {
if (value) { if (value) {
this.startDownload(localFolder) this.startDownload(localFolder)
} }
}
}, },
async selectFolder() { async selectFolder() {
const folderObj = await AbsFileSystem.selectFolder({ mediaType: this.mediaType }) const folderObj = await AbsFileSystem.selectFolder({ mediaType: this.mediaType })
+4 -1
View File
@@ -618,7 +618,9 @@ export default {
} }
console.log('Local folder', JSON.stringify(localFolder)) console.log('Local folder', JSON.stringify(localFolder))
if (this.isLowFeedback) {
this.startDownload(localFolder)
} else {
let startDownloadMessage = `Start download for "${this.title}" with ${this.numTracks} audio track${this.numTracks == 1 ? '' : 's'} to folder ${localFolder.name}?` let startDownloadMessage = `Start download for "${this.title}" with ${this.numTracks} audio track${this.numTracks == 1 ? '' : 's'} to folder ${localFolder.name}?`
if (!this.isIos && this.showRead) { if (!this.isIos && this.showRead) {
if (this.numTracks > 0) { if (this.numTracks > 0) {
@@ -634,6 +636,7 @@ export default {
if (value) { if (value) {
this.startDownload(localFolder) this.startDownload(localFolder)
} }
}
}, },
async startDownload(localFolder = null) { async startDownload(localFolder = null) {
const payload = { const payload = {