1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 21:15:45 +02:00
This commit is contained in:
syuilo
2018-02-12 00:17:51 +09:00
parent cbec4229d3
commit eb1fa6e43c
7 changed files with 89 additions and 81 deletions

View File

@@ -73,8 +73,7 @@
<script lang="ts">
import Vue from 'vue';
import compile from '../../common/scripts/text-compiler';
import dateStringify from '../../common/scripts/date-stringify';
import dateStringify from '../../../common/scripts/date-stringify';
export default Vue.extend({
props: ['post'],
@@ -156,6 +155,13 @@ export default Vue.extend({
if (post.id == this.post.id) {
this.$emit('update:post', post);
}
},
reply() {
document.body.appendChild(new MkPostFormWindow({
propsData: {
reply: this.p
}
}).$mount().$el);
}
}
});
@@ -163,12 +169,6 @@ export default Vue.extend({
<script lang="typescript">
this.reply = () => {
riot.mount(document.body.appendChild(document.createElement('mk-post-form-window')), {
reply: this.p
});
};
this.repost = () => {
riot.mount(document.body.appendChild(document.createElement('mk-repost-form-window')), {
post: this.p