Skip to content
Snippets Groups Projects
Commit a1641193 authored by HJ's avatar HJ :fire:
Browse files

Merge branch 'tusooa/983-mention-twice' into 'develop'

Fix a bug where mentioning a user twice will not fill the mention into the textarea

Closes #983

See merge request pleroma/pleroma-fe!1850
parents e31bf664 0dc2afb8
No related branches found
No related tags found
No related merge requests found
Fix a bug where mentioning a user twice will not fill the mention into the textarea
......@@ -44,6 +44,10 @@ const PostStatusModal = {
methods: {
closeModal () {
this.$store.dispatch('closePostStatusModal')
},
resetAndClose () {
this.$store.dispatch('resetPostStatusModal')
this.$store.dispatch('closePostStatusModal')
}
}
}
......
......@@ -12,7 +12,7 @@
<PostStatusForm
class="panel-body"
v-bind="params"
@posted="closeModal"
@posted="resetAndClose"
/>
</div>
</Modal>
......
......@@ -10,6 +10,9 @@ const postStatus = {
},
closePostStatusModal (state) {
state.modalActivated = false
},
resetPostStatusModal (state) {
state.params = null
}
},
actions: {
......@@ -18,6 +21,9 @@ const postStatus = {
},
closePostStatusModal ({ commit }) {
commit('closePostStatusModal')
},
resetPostStatusModal ({ commit }) {
commit('resetPostStatusModal')
}
}
}
......
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