fix
This commit is contained in:
parent
b13446f8d8
commit
aa2ab698b5
|
@ -557,11 +557,12 @@ export async function selectDriveFile(multiple: boolean, excludeSensitive: boole
|
|||
});
|
||||
}
|
||||
|
||||
export async function selectDriveFolder(multiple: boolean): Promise<Misskey.entities.DriveFolder[]> {
|
||||
export async function selectDriveFolder(multiple: boolean, excludeSensitive: boolean): Promise<Misskey.entities.DriveFolder[]> {
|
||||
return new Promise(resolve => {
|
||||
popup(defineAsyncComponent(() => import('@/components/MkDriveSelectDialog.vue')), {
|
||||
type: 'folder',
|
||||
multiple,
|
||||
excludeSensitive,
|
||||
}, {
|
||||
done: folders => {
|
||||
if (folders) {
|
||||
|
|
|
@ -90,7 +90,7 @@ function select(src: any, label: string | null, multiple: boolean, excludeSensit
|
|||
title: i18n.ts.cannotSelectSensitiveMedia,
|
||||
text: i18n.ts.cannotSelectSensitiveMediaDescription,
|
||||
});
|
||||
rej();
|
||||
rej(new Error('Sensitive media is selected'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue