mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 15:40:57 -07:00
wip
This commit is contained in:
parent
b36d2c68e6
commit
a5bfab4792
2 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue