|
@@ -51,7 +51,7 @@ class OneDriveConfig {
|
|
|
this.sharepointTenantId = config.onedrive?.sharepoint_tenant_id;
|
|
|
|
|
|
if (!this.clientIdPersonal && !this.clientIdBusiness) {
|
|
|
- throw new Error('OneDrive personal or business client ID not configured');
|
|
|
+ throw new Error('OneDrive personal or business client ID not configured');
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -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'
|
|
|
}
|
|
|
}
|
|
|
};
|