diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-11-09 16:00:29 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-09 16:00:29 +0900 |
| commit | 3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa (patch) | |
| tree | 3af53c7b8d5ecc5f0c21cbc5abec3ec5254606b0 /src/client/app/desktop/api/input.ts | |
| parent | [Client] Fix bug (diff) | |
| download | sharkey-3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa.tar.gz sharkey-3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa.tar.bz2 sharkey-3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa.zip | |
Refactor client (#3178)
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
Diffstat (limited to 'src/client/app/desktop/api/input.ts')
| -rw-r--r-- | src/client/app/desktop/api/input.ts | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/client/app/desktop/api/input.ts b/src/client/app/desktop/api/input.ts deleted file mode 100644 index bd7bfa0129..0000000000 --- a/src/client/app/desktop/api/input.ts +++ /dev/null @@ -1,19 +0,0 @@ -import OS from '../../mios'; -import InputDialog from '../views/components/input-dialog.vue'; - -export default (os: OS) => opts => { - return new Promise<string>((res, rej) => { - const o = opts || {}; - const d = os.new(InputDialog, { - title: o.title, - placeholder: o.placeholder, - default: o.default, - type: o.type || 'text', - allowEmpty: o.allowEmpty - }); - d.$once('done', text => { - res(text); - }); - document.body.appendChild(d.$el); - }); -}; |