mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-01 00:25:26 +02:00
Improvements and fixes on the cellular permissions
This commit is contained in:
parent
574dda5286
commit
4ad54f34fe
9 changed files with 94 additions and 72 deletions
|
@ -58,6 +58,7 @@
|
|||
|
||||
<script>
|
||||
import { AbsFileSystem, AbsDownloader } from '@/plugins/capacitor'
|
||||
import cellularPermissionHelpers from '@/mixins/cellularPermissionHelpers'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
@ -73,6 +74,7 @@ export default {
|
|||
},
|
||||
isLocal: Boolean
|
||||
},
|
||||
mixins: [cellularPermissionHelpers],
|
||||
data() {
|
||||
return {
|
||||
isProcessingReadUpdate: false,
|
||||
|
@ -180,6 +182,9 @@ export default {
|
|||
async downloadClick() {
|
||||
if (this.downloadItem || this.startingDownload) return
|
||||
|
||||
const hasPermission = await this.checkCellularPermission('download')
|
||||
if (!hasPermission) return
|
||||
|
||||
this.startingDownload = true
|
||||
setTimeout(() => {
|
||||
this.startingDownload = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue