From 1393707110172ec7eaf065a9313134f82066663d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Wed, 6 Mar 2024 15:43:15 +0100 Subject: [PATCH 1/3] feat: allow to disable file picker navigation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- lib/components/FilePicker/FilePicker.vue | 9 ++++++++- .../FilePicker/FilePickerNavigation.vue | 5 +++-- lib/filepicker-builder.ts | 20 ++++++++++++++++++- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/lib/components/FilePicker/FilePicker.vue b/lib/components/FilePicker/FilePicker.vue index 6d16fb1a..72089800 100644 --- a/lib/components/FilePicker/FilePicker.vue +++ b/lib/components/FilePicker/FilePicker.vue @@ -11,7 +11,8 @@
@@ -89,6 +90,11 @@ const props = withDefaults(defineProps<{ */ allowPickDirectory?: boolean + /** + * Is the navigation disabled + */ + disabledNavigation?: boolean + /** * Where to mount the dialog * @default 'body' @@ -121,6 +127,7 @@ const props = withDefaults(defineProps<{ path?: string }>(), { allowPickDirectory: false, + disabledNavigation: false, container: 'body', filterFn: undefined, mimetypeFilter: () => [], diff --git a/lib/components/FilePicker/FilePickerNavigation.vue b/lib/components/FilePicker/FilePickerNavigation.vue index f3256e7e..62c4bc83 100644 --- a/lib/components/FilePicker/FilePickerNavigation.vue +++ b/lib/components/FilePicker/FilePickerNavigation.vue @@ -12,7 +12,7 @@ -