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>
import { Dialog } from '@capacitor/dialog'
import { AbsDownloader } from '@/plugins/capacitor'
import { AbsFileSystem, AbsDownloader } from '@/plugins/capacitor'
export default {
props: {
@@ -135,8 +135,12 @@ export default {
}
},
methods: {
selectFolder() {
this.$toast.error('Folder selector not implemented for podcasts yet')
async selectFolder() {
var folderObj = await AbsFileSystem.selectFolder({ mediaType: this.mediaType })
if (folderObj.error) {
return this.$toast.error(`Error: ${folderObj.error || 'Unknown Error'}`)
}
return folderObj
},
downloadClick() {
if (this.downloadItem) return
+1
View File
@@ -239,6 +239,7 @@ export default {
return this.ebookFile && this.ebookFormat !== 'pdf'
},
showDownload() {
if (this.isIos) return false
return this.user && this.userCanDownload && this.showPlay && !this.hasLocal
},
ebookFile() {