From 07cc807bc9a2c47172ea780a4786818465135734 Mon Sep 17 00:00:00 2001 From: Selene Blok Date: Tue, 30 Sep 2025 16:43:38 +0200 Subject: [PATCH] feat(onedrive): Enable search and "My Organization" pivot --- src/lib/utils/onedrive-file-picker.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib/utils/onedrive-file-picker.ts b/src/lib/utils/onedrive-file-picker.ts index 78477e80db..e1d6df0392 100644 --- a/src/lib/utils/onedrive-file-picker.ts +++ b/src/lib/utils/onedrive-file-picker.ts @@ -176,6 +176,9 @@ interface PickerParams { origin: string; channelId: string; }; + search: { + enabled: boolean; + } typesAndSources: { mode: string; pivots: Record; @@ -204,11 +207,15 @@ function getPickerParams(): PickerParams { origin: window?.location?.origin || '', channelId }, + search: { + enabled: true + }, typesAndSources: { mode: 'files', pivots: { oneDrive: true, - recent: true + recent: true, + myOrganization: config.getAuthorityType() === "organizations", } } };