mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-30 22:59:35 +02:00
Hide UI options that iOS does not need / support
This commit is contained in:
parent
999d434fe9
commit
02eabb82c1
2 changed files with 18 additions and 27 deletions
|
@ -16,7 +16,7 @@ public class AbsFileSystem: CAPPlugin {
|
||||||
// TODO: Implement
|
// TODO: Implement
|
||||||
NSLog("Select Folder for media type \(mediaType ?? "UNSET")")
|
NSLog("Select Folder for media type \(mediaType ?? "UNSET")")
|
||||||
|
|
||||||
call.resolve()
|
call.unavailable("Not available on iOS")
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func checkFolderPermission(_ call: CAPPluginCall) {
|
@objc func checkFolderPermission(_ call: CAPPluginCall) {
|
||||||
|
@ -25,9 +25,7 @@ public class AbsFileSystem: CAPPlugin {
|
||||||
// TODO: Is this even necessary on iOS?
|
// TODO: Is this even necessary on iOS?
|
||||||
NSLog("checkFolderPermission for folder \(folderUrl ?? "UNSET")")
|
NSLog("checkFolderPermission for folder \(folderUrl ?? "UNSET")")
|
||||||
|
|
||||||
call.resolve([
|
call.unavailable("Not available on iOS")
|
||||||
"value": true
|
|
||||||
])
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func scanFolder(_ call: CAPPluginCall) {
|
@objc func scanFolder(_ call: CAPPluginCall) {
|
||||||
|
@ -37,7 +35,7 @@ public class AbsFileSystem: CAPPlugin {
|
||||||
// TODO: Implement
|
// TODO: Implement
|
||||||
NSLog("scanFolder \(folderId ?? "UNSET") | Force Probe = \(forceAudioProbe)")
|
NSLog("scanFolder \(folderId ?? "UNSET") | Force Probe = \(forceAudioProbe)")
|
||||||
|
|
||||||
call.resolve()
|
call.unavailable("Not available on iOS")
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func removeFolder(_ call: CAPPluginCall) {
|
@objc func removeFolder(_ call: CAPPluginCall) {
|
||||||
|
@ -46,7 +44,7 @@ public class AbsFileSystem: CAPPlugin {
|
||||||
// TODO: Implement
|
// TODO: Implement
|
||||||
NSLog("removeFolder \(folderId ?? "UNSET")")
|
NSLog("removeFolder \(folderId ?? "UNSET")")
|
||||||
|
|
||||||
call.resolve()
|
call.unavailable("Not available on iOS")
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func removeLocalLibraryItem(_ call: CAPPluginCall) {
|
@objc func removeLocalLibraryItem(_ call: CAPPluginCall) {
|
||||||
|
@ -55,7 +53,7 @@ public class AbsFileSystem: CAPPlugin {
|
||||||
// TODO: Implement
|
// TODO: Implement
|
||||||
NSLog("removeLocalLibraryItem \(localLibraryItemId ?? "UNSET")")
|
NSLog("removeLocalLibraryItem \(localLibraryItemId ?? "UNSET")")
|
||||||
|
|
||||||
call.resolve()
|
call.unavailable("Not available on iOS")
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func scanLocalLibraryItem(_ call: CAPPluginCall) {
|
@objc func scanLocalLibraryItem(_ call: CAPPluginCall) {
|
||||||
|
@ -65,7 +63,7 @@ public class AbsFileSystem: CAPPlugin {
|
||||||
// TODO: Implement
|
// TODO: Implement
|
||||||
NSLog("scanLocalLibraryItem \(localLibraryItemId ?? "UNSET") | Force Probe = \(forceAudioProbe)")
|
NSLog("scanLocalLibraryItem \(localLibraryItemId ?? "UNSET") | Force Probe = \(forceAudioProbe)")
|
||||||
|
|
||||||
call.resolve()
|
call.unavailable("Not available on iOS")
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func deleteItem(_ call: CAPPluginCall) {
|
@objc func deleteItem(_ call: CAPPluginCall) {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<span class="material-icons" @click="showItemDialog">more_vert</span>
|
<span class="material-icons" @click="showItemDialog">more_vert</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="px-2 text-sm mb-0.5 text-white text-opacity-75">Folder: {{ folderName }}</p>
|
<p v-if="!isIos" class="px-2 text-sm mb-0.5 text-white text-opacity-75">Folder: {{ folderName }}</p>
|
||||||
|
|
||||||
<p class="px-2 mb-4 text-xs text-gray-400">{{ libraryItemId ? 'Linked to item on server ' + liServerAddress : 'Not linked to server item' }}</p>
|
<p class="px-2 mb-4 text-xs text-gray-400">{{ libraryItemId ? 'Linked to item on server ' + liServerAddress : 'Not linked to server item' }}</p>
|
||||||
|
|
||||||
|
@ -138,6 +138,9 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
isIos() {
|
||||||
|
return this.$platform === 'ios'
|
||||||
|
},
|
||||||
basePath() {
|
basePath() {
|
||||||
return this.localLibraryItem ? this.localLibraryItem.basePath : null
|
return this.localLibraryItem ? this.localLibraryItem.basePath : null
|
||||||
},
|
},
|
||||||
|
@ -194,24 +197,14 @@ export default {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
} else {
|
} else {
|
||||||
return [
|
var options = []
|
||||||
{
|
if ( !this.isIos ) {
|
||||||
text: 'Scan',
|
options.push({ text: 'Scan', value: 'scan'})
|
||||||
value: 'scan'
|
options.push({ text: 'Force Re-Scan', value: 'rescan'})
|
||||||
},
|
options.push({ text: 'Remove', value: 'remove'})
|
||||||
{
|
}
|
||||||
text: 'Force Re-Scan',
|
options.push({ text: 'Remove & Delete Files', value: 'delete'})
|
||||||
value: 'rescan'
|
return options
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'Remove',
|
|
||||||
value: 'remove'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'Remove & Delete Files',
|
|
||||||
value: 'delete'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue