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
This commit is contained in:
HJ 2023-07-25 08:29:59 +00:00
commit a1641193b5
4 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1 @@
Fix a bug where mentioning a user twice will not fill the mention into the textarea

View File

@ -44,6 +44,10 @@ const PostStatusModal = {
methods: {
closeModal () {
this.$store.dispatch('closePostStatusModal')
},
resetAndClose () {
this.$store.dispatch('resetPostStatusModal')
this.$store.dispatch('closePostStatusModal')
}
}
}

View File

@ -12,7 +12,7 @@
<PostStatusForm
class="panel-body"
v-bind="params"
@posted="closeModal"
@posted="resetAndClose"
/>
</div>
</Modal>

View File

@ -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')
}
}
}