summaryrefslogtreecommitdiff
path: root/src/client/app/mobile/api/dialog.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-11-09 16:00:29 +0900
committerGitHub <noreply@github.com>2018-11-09 16:00:29 +0900
commit3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa (patch)
tree3af53c7b8d5ecc5f0c21cbc5abec3ec5254606b0 /src/client/app/mobile/api/dialog.ts
parent[Client] Fix bug (diff)
downloadmisskey-3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa.tar.gz
misskey-3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa.tar.bz2
misskey-3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa.zip
Refactor client (#3178)
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
Diffstat (limited to 'src/client/app/mobile/api/dialog.ts')
-rw-r--r--src/client/app/mobile/api/dialog.ts18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/client/app/mobile/api/dialog.ts b/src/client/app/mobile/api/dialog.ts
deleted file mode 100644
index 23f35b7aa9..0000000000
--- a/src/client/app/mobile/api/dialog.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import OS from '../../mios';
-import Dialog from '../views/components/dialog.vue';
-
-export default (os: OS) => opts => {
- return new Promise<string>((res, rej) => {
- const o = opts || {};
- const d = os.new(Dialog, {
- title: o.title,
- text: o.text,
- modal: o.modal,
- buttons: o.actions
- });
- d.$once('clicked', id => {
- res(id);
- });
- document.body.appendChild(d.$el);
- });
-};