Keep mentions when editing a comment

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-01-31 14:46:56 +01:00
parent 41d286986b
commit ac39a0d92c
4 changed files with 30 additions and 11 deletions

View File

@@ -77,7 +77,7 @@ export default {
state.comments[cardId].comments.forEach(_comment => {
Vue.set(_comment, 'isUnread', false)
})
}
},
},
actions: {
async fetchComments({ commit }, { cardId, offset }) {
@@ -119,6 +119,6 @@ export default {
async markCommentsAsRead({ commit }, cardId) {
await apiClient.markCommentsAsRead(cardId)
await commit('markCommentsAsRead', cardId)
}
},
},
}