diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-01 09:16:25 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-01 09:16:25 +0900 |
| commit | 6819eb3b4da43665de8e159d774b3f2325ddfe0b (patch) | |
| tree | 6140e6e8ee632d96ee8f12be19e75d76bd0b319f /src/client/app/mobile/api | |
| parent | #2541 (diff) | |
| download | sharkey-6819eb3b4da43665de8e159d774b3f2325ddfe0b.tar.gz sharkey-6819eb3b4da43665de8e159d774b3f2325ddfe0b.tar.bz2 sharkey-6819eb3b4da43665de8e159d774b3f2325ddfe0b.zip | |
Improve usability
Diffstat (limited to 'src/client/app/mobile/api')
| -rw-r--r-- | src/client/app/mobile/api/post.ts | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/client/app/mobile/api/post.ts b/src/client/app/mobile/api/post.ts deleted file mode 100644 index 15b2f6b691..0000000000 --- a/src/client/app/mobile/api/post.ts +++ /dev/null @@ -1,24 +0,0 @@ -import PostForm from '../views/components/post-form.vue'; - -export default (os) => (opts) => { - const o = opts || {}; - - const app = document.getElementById('app'); - app.style.display = 'none'; - - function recover() { - app.style.display = 'block'; - } - - const vm = new PostForm({ - parent: os.app, - propsData: { - reply: o.reply, - renote: o.renote - } - }).$mount(); - vm.$once('cancel', recover); - vm.$once('posted', recover); - document.body.appendChild(vm.$el); - (vm as any).focus(); -}; |