wip
This commit is contained in:
parent
283c64e6f1
commit
61b95e0c26
11 changed files with 179 additions and 121 deletions
17
src/web/app/desktop/api/choose-drive-folder.ts
Normal file
17
src/web/app/desktop/api/choose-drive-folder.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import MkChooseFolderFromDriveWindow from '../../../common/views/components/choose-folder-from-drive-window.vue';
|
||||
|
||||
export default function(this: any, opts) {
|
||||
return new Promise((res, rej) => {
|
||||
const o = opts || {};
|
||||
const w = new MkChooseFolderFromDriveWindow({
|
||||
parent: this,
|
||||
propsData: {
|
||||
title: o.title
|
||||
}
|
||||
}).$mount();
|
||||
w.$once('selected', folder => {
|
||||
res(folder);
|
||||
});
|
||||
document.body.appendChild(w.$el);
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue