summaryrefslogtreecommitdiff
path: root/src/web/app/mobile
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-22 23:53:07 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-22 23:53:07 +0900
commitb5068aae059c50ef837d2a5a20ae6c85d8ee7f98 (patch)
treee4fb3849a62453c479900a76418c5eb3bc7e880d /src/web/app/mobile
parentwip (diff)
downloadmisskey-b5068aae059c50ef837d2a5a20ae6c85d8ee7f98.tar.gz
misskey-b5068aae059c50ef837d2a5a20ae6c85d8ee7f98.tar.bz2
misskey-b5068aae059c50ef837d2a5a20ae6c85d8ee7f98.zip
wip
Diffstat (limited to 'src/web/app/mobile')
-rw-r--r--src/web/app/mobile/views/components/post-detail.vue24
-rw-r--r--src/web/app/mobile/views/components/posts.post.vue24
-rw-r--r--src/web/app/mobile/views/components/ui.vue8
3 files changed, 23 insertions, 33 deletions
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
+ });
}
}
});