mirror of
https://github.com/open-webui/open-webui.git
synced 2026-01-03 23:25:21 +00:00
feat(onedrive): Enable search and "My Organization" pivot
This commit is contained in:
parent
01a5b97415
commit
07cc807bc9
1 changed files with 8 additions and 1 deletions
|
|
@ -176,6 +176,9 @@ interface PickerParams {
|
|||
origin: string;
|
||||
channelId: string;
|
||||
};
|
||||
search: {
|
||||
enabled: boolean;
|
||||
}
|
||||
typesAndSources: {
|
||||
mode: string;
|
||||
pivots: Record<string, boolean>;
|
||||
|
|
@ -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",
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue