This commit is contained in:
syuilo 2018-02-22 23:53:07 +09:00
parent e98626dbbc
commit b5068aae05
14 changed files with 102 additions and 126 deletions

View file

@ -186,34 +186,26 @@ export default Vue.extend({
}
},
reply() {
document.body.appendChild(new MkPostFormWindow({
propsData: {
reply: this.p
}
}).$mount().$el);
(this as any).os.new(MkPostFormWindow, {
reply: this.p
});
},
repost() {
document.body.appendChild(new MkRepostFormWindow({
propsData: {
post: this.p
}
}).$mount().$el);
(this as any).os.new(MkRepostFormWindow, {
post: this.p
});
},
react() {
document.body.appendChild(new MkReactionPicker({
propsData: {
source: this.$refs.reactButton,
post: this.p
}
}).$mount().$el);
(this as any).os.new(MkReactionPicker, {
source: this.$refs.reactButton,
post: this.p
});
},
menu() {
document.body.appendChild(new MkPostMenu({
propsData: {
source: this.$refs.menuButton,
post: this.p
}
}).$mount().$el);
(this as any).os.new(MkPostMenu, {
source: this.$refs.menuButton,
post: this.p
});
},
onKeydown(e) {
let shouldBeCancel = true;