mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-16 16:57:14 +01:00
17 lines
374 B
TypeScript
17 lines
374 B
TypeScript
import Chooser from '../views/components/drive-folder-chooser.vue';
|
|
|
|
export default function(opts) {
|
|
return new Promise((res, rej) => {
|
|
const o = opts || {};
|
|
const w = new Chooser({
|
|
propsData: {
|
|
title: o.title,
|
|
initFolder: o.currentFolder
|
|
}
|
|
}).$mount();
|
|
w.$once('selected', folder => {
|
|
res(folder);
|
|
});
|
|
document.body.appendChild(w.$el);
|
|
});
|
|
}
|