diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-14 16:30:58 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-14 16:30:58 +0900 |
| commit | 11afa8140c5706c8ad105e50cef63df83db66e7a (patch) | |
| tree | d7e322dab3dc20f9ba86681dd7b2354af922fdda /src/client/app/desktop/script.ts | |
| parent | [Client] Add missing icons (diff) | |
| download | sharkey-11afa8140c5706c8ad105e50cef63df83db66e7a.tar.gz sharkey-11afa8140c5706c8ad105e50cef63df83db66e7a.tar.bz2 sharkey-11afa8140c5706c8ad105e50cef63df83db66e7a.zip | |
[Client] Improve alert component
Diffstat (limited to 'src/client/app/desktop/script.ts')
| -rw-r--r-- | src/client/app/desktop/script.ts | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/client/app/desktop/script.ts b/src/client/app/desktop/script.ts index f2d27fa16e..cb23613164 100644 --- a/src/client/app/desktop/script.ts +++ b/src/client/app/desktop/script.ts @@ -34,7 +34,6 @@ import PostFormWindow from './views/components/post-form-window.vue'; import RenoteFormWindow from './views/components/renote-form-window.vue'; import MkChooseFileFromDriveWindow from './views/components/choose-file-from-drive-window.vue'; import MkChooseFolderFromDriveWindow from './views/components/choose-folder-from-drive-window.vue'; -import Dialog from './views/components/dialog.vue'; import InputDialog from './views/components/input-dialog.vue'; import Notification from './views/components/ui-notification.vue'; @@ -114,21 +113,6 @@ init(async (launch) => { }); }, - $dialog(opts) { - return new Promise<string>((res, rej) => { - const o = opts || {}; - const d = this.$root.new(Dialog, { - title: o.title, - text: o.text, - modal: o.modal, - buttons: o.actions - }); - d.$once('clicked', id => { - res(id); - }); - }); - }, - $input(opts) { return new Promise<string>((res, rej) => { const o = opts || {}; |