mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-09-09 19:31:51 +02:00
Adds hiding audio book feedback promt/toast
This commit is contained in:
@@ -398,13 +398,17 @@ export default {
|
|||||||
|
|
||||||
console.log('Local folder', JSON.stringify(localFolder))
|
console.log('Local folder', JSON.stringify(localFolder))
|
||||||
|
|
||||||
const startDownloadMessage = `Start download for "${this.title}" to folder ${localFolder.name}?`
|
if (this.isLowFeedback) {
|
||||||
const { value } = await Dialog.confirm({
|
|
||||||
title: 'Confirm',
|
|
||||||
message: startDownloadMessage
|
|
||||||
})
|
|
||||||
if (value) {
|
|
||||||
this.startDownload(localFolder)
|
this.startDownload(localFolder)
|
||||||
|
} else {
|
||||||
|
const startDownloadMessage = `Start download for "${this.title}" to folder ${localFolder.name}?`
|
||||||
|
const { value } = await Dialog.confirm({
|
||||||
|
title: 'Confirm',
|
||||||
|
message: startDownloadMessage
|
||||||
|
})
|
||||||
|
if (value) {
|
||||||
|
this.startDownload(localFolder)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async selectFolder() {
|
async selectFolder() {
|
||||||
|
|||||||
+17
-14
@@ -618,21 +618,24 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.log('Local folder', JSON.stringify(localFolder))
|
console.log('Local folder', JSON.stringify(localFolder))
|
||||||
|
if (this.isLowFeedback) {
|
||||||
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.numTracks > 0) {
|
|
||||||
startDownloadMessage = `Start download for "${this.title}" with ${this.numTracks} audio track${this.numTracks == 1 ? '' : 's'} and ebook file to folder ${localFolder.name}?`
|
|
||||||
} else {
|
|
||||||
startDownloadMessage = `Start download for "${this.title}" with ebook file to folder ${localFolder.name}?`
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const { value } = await Dialog.confirm({
|
|
||||||
title: 'Confirm',
|
|
||||||
message: startDownloadMessage
|
|
||||||
})
|
|
||||||
if (value) {
|
|
||||||
this.startDownload(localFolder)
|
this.startDownload(localFolder)
|
||||||
|
} else {
|
||||||
|
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.numTracks > 0) {
|
||||||
|
startDownloadMessage = `Start download for "${this.title}" with ${this.numTracks} audio track${this.numTracks == 1 ? '' : 's'} and ebook file to folder ${localFolder.name}?`
|
||||||
|
} else {
|
||||||
|
startDownloadMessage = `Start download for "${this.title}" with ebook file to folder ${localFolder.name}?`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const { value } = await Dialog.confirm({
|
||||||
|
title: 'Confirm',
|
||||||
|
message: startDownloadMessage
|
||||||
|
})
|
||||||
|
if (value) {
|
||||||
|
this.startDownload(localFolder)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async startDownload(localFolder = null) {
|
async startDownload(localFolder = null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user