mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-05 02:25:45 +02:00
Add: info bubble for local folders
This commit is contained in:
parent
e194df455b
commit
1e840250b9
2 changed files with 17 additions and 2 deletions
|
@ -1,6 +1,9 @@
|
|||
<template>
|
||||
<div class="w-full h-full py-6">
|
||||
<h1 class="text-base font-semibold px-2 mb-2">{{ $strings.HeaderLocalFolders }}</h1>
|
||||
<h1 class="text-base font-semibold px-2 mb-2">
|
||||
{{ $strings.HeaderLocalFolders }}
|
||||
<span class="material-icons-outlined ml-2" @click.stop="showLocalFolderMoreInfo">info</span>
|
||||
</h1>
|
||||
|
||||
<div v-if="!isIos" class="w-full max-w-full px-2 py-2">
|
||||
<template v-for="folder in localFolders">
|
||||
|
@ -33,6 +36,7 @@
|
|||
|
||||
<script>
|
||||
import { AbsFileSystem } from '@/plugins/capacitor'
|
||||
import { Dialog } from '@capacitor/dialog'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
@ -87,6 +91,16 @@ export default {
|
|||
this.$toast.success('Folder permission success')
|
||||
}
|
||||
},
|
||||
async showLocalFolderMoreInfo() {
|
||||
const confirmResult = await Dialog.confirm({
|
||||
title: this.$strings.HeaderLocalFolders,
|
||||
message: this.$strings.MessageLocalFolderDescription,
|
||||
cancelButtonTitle: 'View More'
|
||||
})
|
||||
if (!confirmResult.value) {
|
||||
window.open('https://www.audiobookshelf.org/guides/android_app_shared_storage', '_blank')
|
||||
}
|
||||
},
|
||||
async init() {
|
||||
const androidSdkVersion = await this.$getAndroidSDKVersion()
|
||||
this.isAndroid10OrBelow = !!androidSdkVersion && androidSdkVersion <= 29
|
||||
|
@ -100,4 +114,4 @@ export default {
|
|||
this.init()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue