mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-17 09:36:28 +01:00
f6154dc0af
Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com> Co-authored-by: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>
12 lines
289 B
TypeScript
12 lines
289 B
TypeScript
import DriveWindow from '../components/drive-window.vue';
|
|
|
|
export function selectDriveFile($root: any, multiple) {
|
|
return new Promise((res, rej) => {
|
|
const w = $root.new(DriveWindow, {
|
|
multiple
|
|
});
|
|
w.$once('selected', files => {
|
|
res(multiple ? files : files[0]);
|
|
});
|
|
});
|
|
}
|