From b5068aae059c50ef837d2a5a20ae6c85d8ee7f98 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 22 Feb 2018 23:53:07 +0900 Subject: wip --- .../app/mobile/views/components/post-detail.vue | 24 +++++++++------------- src/web/app/mobile/views/components/posts.post.vue | 24 +++++++++------------- src/web/app/mobile/views/components/ui.vue | 8 +++----- 3 files changed, 23 insertions(+), 33 deletions(-) (limited to 'src/web/app/mobile') diff --git a/src/web/app/mobile/views/components/post-detail.vue b/src/web/app/mobile/views/components/post-detail.vue index 76057525f0..e7c08df7e9 100644 --- a/src/web/app/mobile/views/components/post-detail.vue +++ b/src/web/app/mobile/views/components/post-detail.vue @@ -154,22 +154,18 @@ export default Vue.extend({ }); }, react() { - document.body.appendChild(new MkReactionPicker({ - propsData: { - source: this.$refs.reactButton, - post: this.p, - compact: true - } - }).$mount().$el); + (this as any).os.new(MkReactionPicker, { + source: this.$refs.reactButton, + post: this.p, + compact: true + }); }, menu() { - document.body.appendChild(new MkPostMenu({ - propsData: { - source: this.$refs.menuButton, - post: this.p, - compact: true - } - }).$mount().$el); + (this as any).os.new(MkPostMenu, { + source: this.$refs.menuButton, + post: this.p, + compact: true + }); } } }); diff --git a/src/web/app/mobile/views/components/posts.post.vue b/src/web/app/mobile/views/components/posts.post.vue index 9a7d633d44..43d8d4a89b 100644 --- a/src/web/app/mobile/views/components/posts.post.vue +++ b/src/web/app/mobile/views/components/posts.post.vue @@ -169,22 +169,18 @@ export default Vue.extend({ }); }, react() { - document.body.appendChild(new MkReactionPicker({ - propsData: { - source: this.$refs.reactButton, - post: this.p, - compact: true - } - }).$mount().$el); + (this as any).os.new(MkReactionPicker, { + source: this.$refs.reactButton, + post: this.p, + compact: true + }); }, menu() { - document.body.appendChild(new MkPostMenu({ - propsData: { - source: this.$refs.menuButton, - post: this.p, - compact: true - } - }).$mount().$el); + (this as any).os.new(MkPostMenu, { + source: this.$refs.menuButton, + post: this.p, + compact: true + }); } } }); diff --git a/src/web/app/mobile/views/components/ui.vue b/src/web/app/mobile/views/components/ui.vue index 1e34c84e62..54b8a2d0d3 100644 --- a/src/web/app/mobile/views/components/ui.vue +++ b/src/web/app/mobile/views/components/ui.vue @@ -53,11 +53,9 @@ export default Vue.extend({ id: notification.id }); - document.body.appendChild(new MkNotify({ - propsData: { - notification - } - }).$mount().$el); + (this as any).os.new(MkNotify, { + notification + }); } } }); -- cgit v1.2.3-freya