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

このコミットが含まれているのは:
tusooa 2023-07-24 19:13:37 -04:00
コミット 0dc2afb826
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 42AEC43D48433C51
4個のファイルの変更12行の追加1行の削除

1
changelog.d/mention-twice.fix ノーマルファイル
ファイルの表示

@ -0,0 +1 @@
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')
}
}
}