Skip to content
Snippets Groups Projects
Commit 205e7280 authored by syuilo's avatar syuilo
Browse files

wip

parent 5d05a25a
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
<mk-post-preview v-if="reply" :class="$style.postPreview" :post="reply"/>
<mk-post-form ref="form"
:reply="reply"
@posted="$refs.window.close"
@posted="onPosted"
@change-uploadings="onChangeUploadings"
@change-attached-media="onChangeMedia"/>
</div>
......@@ -39,6 +39,9 @@ export default Vue.extend({
},
onChangeMedia(media) {
this.media = media;
},
onPosted() {
(this.$refs.window as any).close();
}
}
});
......
......@@ -21,7 +21,9 @@ export default Vue.extend({
},
methods: {
openPostForm() {
document.body.appendChild(new MkPostFormWindow().$mount().$el);
document.body.appendChild(new MkPostFormWindow({
parent: this
}).$mount().$el);
},
onKeydown(e) {
if (e.target.tagName == 'INPUT' || e.target.tagName == 'TEXTAREA') return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment