diff options
| author | tusooa <tusooa@kazv.moe> | 2023-07-24 19:13:37 -0400 |
|---|---|---|
| committer | tusooa <tusooa@kazv.moe> | 2023-07-24 19:13:37 -0400 |
| commit | 0dc2afb8261fc474bd46bcb1b57ab845fc1baf32 (patch) | |
| tree | 317378109cb24cec3b7a3e347d1a8892f0d4c0ac /src/components | |
| parent | e31bf6646b9cdd21bef7b4f64083b1f8c2bbd913 (diff) | |
Fix a bug where mentioning a user twice will not fill the mention into the textarea
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/post_status_modal/post_status_modal.js | 4 | ||||
| -rw-r--r-- | src/components/post_status_modal/post_status_modal.vue | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/components/post_status_modal/post_status_modal.js b/src/components/post_status_modal/post_status_modal.js index b44354db..8970dd9b 100644 --- a/src/components/post_status_modal/post_status_modal.js +++ b/src/components/post_status_modal/post_status_modal.js @@ -44,6 +44,10 @@ const PostStatusModal = { methods: { closeModal () { this.$store.dispatch('closePostStatusModal') + }, + resetAndClose () { + this.$store.dispatch('resetPostStatusModal') + this.$store.dispatch('closePostStatusModal') } } } diff --git a/src/components/post_status_modal/post_status_modal.vue b/src/components/post_status_modal/post_status_modal.vue index dbcd321e..bc2cad4a 100644 --- a/src/components/post_status_modal/post_status_modal.vue +++ b/src/components/post_status_modal/post_status_modal.vue @@ -12,7 +12,7 @@ <PostStatusForm class="panel-body" v-bind="params" - @posted="closeModal" + @posted="resetAndClose" /> </div> </Modal> |
