Fix:Select podcast folder when none is set yet

This commit is contained in:
advplyr
2022-05-22 15:56:32 -05:00
parent 236fd09c94
commit 573768e2b2
2 changed files with 8 additions and 3 deletions
+7 -3
View File
@@ -41,7 +41,7 @@
<script> <script>
import { Dialog } from '@capacitor/dialog' import { Dialog } from '@capacitor/dialog'
import { AbsDownloader } from '@/plugins/capacitor' import { AbsFileSystem, AbsDownloader } from '@/plugins/capacitor'
export default { export default {
props: { props: {
@@ -135,8 +135,12 @@ export default {
} }
}, },
methods: { methods: {
selectFolder() { async selectFolder() {
this.$toast.error('Folder selector not implemented for podcasts yet') var folderObj = await AbsFileSystem.selectFolder({ mediaType: this.mediaType })
if (folderObj.error) {
return this.$toast.error(`Error: ${folderObj.error || 'Unknown Error'}`)
}
return folderObj
}, },
downloadClick() { downloadClick() {
if (this.downloadItem) return if (this.downloadItem) return
+1
View File
@@ -239,6 +239,7 @@ export default {
return this.ebookFile && this.ebookFormat !== 'pdf' return this.ebookFile && this.ebookFormat !== 'pdf'
}, },
showDownload() { showDownload() {
if (this.isIos) return false
return this.user && this.userCanDownload && this.showPlay && !this.hasLocal return this.user && this.userCanDownload && this.showPlay && !this.hasLocal
}, },
ebookFile() { ebookFile() {