diff --git a/ios/App/App/plugins/AbsFileSystem.swift b/ios/App/App/plugins/AbsFileSystem.swift index c2d59580..83610d75 100644 --- a/ios/App/App/plugins/AbsFileSystem.swift +++ b/ios/App/App/plugins/AbsFileSystem.swift @@ -16,7 +16,7 @@ public class AbsFileSystem: CAPPlugin { // TODO: Implement NSLog("Select Folder for media type \(mediaType ?? "UNSET")") - call.resolve() + call.unavailable("Not available on iOS") } @objc func checkFolderPermission(_ call: CAPPluginCall) { @@ -25,9 +25,7 @@ public class AbsFileSystem: CAPPlugin { // TODO: Is this even necessary on iOS? NSLog("checkFolderPermission for folder \(folderUrl ?? "UNSET")") - call.resolve([ - "value": true - ]) + call.unavailable("Not available on iOS") } @objc func scanFolder(_ call: CAPPluginCall) { @@ -37,7 +35,7 @@ public class AbsFileSystem: CAPPlugin { // TODO: Implement NSLog("scanFolder \(folderId ?? "UNSET") | Force Probe = \(forceAudioProbe)") - call.resolve() + call.unavailable("Not available on iOS") } @objc func removeFolder(_ call: CAPPluginCall) { @@ -46,7 +44,7 @@ public class AbsFileSystem: CAPPlugin { // TODO: Implement NSLog("removeFolder \(folderId ?? "UNSET")") - call.resolve() + call.unavailable("Not available on iOS") } @objc func removeLocalLibraryItem(_ call: CAPPluginCall) { @@ -55,7 +53,7 @@ public class AbsFileSystem: CAPPlugin { // TODO: Implement NSLog("removeLocalLibraryItem \(localLibraryItemId ?? "UNSET")") - call.resolve() + call.unavailable("Not available on iOS") } @objc func scanLocalLibraryItem(_ call: CAPPluginCall) { @@ -65,7 +63,7 @@ public class AbsFileSystem: CAPPlugin { // TODO: Implement NSLog("scanLocalLibraryItem \(localLibraryItemId ?? "UNSET") | Force Probe = \(forceAudioProbe)") - call.resolve() + call.unavailable("Not available on iOS") } @objc func deleteItem(_ call: CAPPluginCall) { diff --git a/pages/localMedia/item/_id.vue b/pages/localMedia/item/_id.vue index 0d825982..53714ad4 100644 --- a/pages/localMedia/item/_id.vue +++ b/pages/localMedia/item/_id.vue @@ -11,7 +11,7 @@ -
Folder: {{ folderName }}
+Folder: {{ folderName }}
{{ libraryItemId ? 'Linked to item on server ' + liServerAddress : 'Not linked to server item' }}
@@ -138,6 +138,9 @@ export default { } }, computed: { + isIos() { + return this.$platform === 'ios' + }, basePath() { return this.localLibraryItem ? this.localLibraryItem.basePath : null }, @@ -194,24 +197,14 @@ export default { } ] } else { - return [ - { - text: 'Scan', - value: 'scan' - }, - { - text: 'Force Re-Scan', - value: 'rescan' - }, - { - text: 'Remove', - value: 'remove' - }, - { - text: 'Remove & Delete Files', - value: 'delete' - } - ] + var options = [] + if ( !this.isIos ) { + options.push({ text: 'Scan', value: 'scan'}) + options.push({ text: 'Force Re-Scan', value: 'rescan'}) + options.push({ text: 'Remove', value: 'remove'}) + } + options.push({ text: 'Remove & Delete Files', value: 'delete'}) + return options } } },