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,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 })
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user