Merge pull request #1473 from nichwall/local_folders_ui_update

Add description for local folder usage
This commit is contained in:
advplyr
2025-02-17 17:58:16 -06:00
committed by GitHub
2 changed files with 19 additions and 2 deletions
+18 -2
View File
@@ -1,6 +1,11 @@
<template>
<div class="w-full h-full py-6">
<h1 class="text-base font-semibold px-2 mb-2">{{ $strings.HeaderLocalFolders }}</h1>
<div class="flex items-center mb-2">
<h1 class="text-base font-semibold px-2">
{{ $strings.HeaderLocalFolders }}
</h1>
<button type="button" class="material-icons-outlined" @click.stop="showLocalFolderMoreInfo">info</button>
</div>
<div v-if="!isIos" class="w-full max-w-full px-2 py-2">
<template v-for="folder in localFolders">
@@ -33,6 +38,7 @@
<script>
import { AbsFileSystem } from '@/plugins/capacitor'
import { Dialog } from '@capacitor/dialog'
export default {
data() {
@@ -87,6 +93,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 +116,4 @@ export default {
this.init()
}
}
</script>
</script>