live updates for boards
Signed-off-by: chandi Langecker <git@chandi.it>
This commit is contained in:
committed by
Julius Härtl
parent
9674c344ea
commit
322ee92573
@@ -333,10 +333,15 @@ export default new Vuex.Store({
|
||||
commit('setAssignableUsers', board.users)
|
||||
},
|
||||
|
||||
async refreshBoard({ commit }, boardId) {
|
||||
async refreshBoard({ commit, dispatch }, boardId) {
|
||||
const board = await apiClient.loadById(boardId)
|
||||
const etagHasChanged = board.ETag !== this.state.currentBoard.ETag
|
||||
commit('setCurrentBoard', board)
|
||||
commit('setAssignableUsers', board.users)
|
||||
|
||||
if (etagHasChanged) {
|
||||
dispatch('loadStacks', boardId)
|
||||
}
|
||||
},
|
||||
|
||||
toggleShowArchived({ commit }) {
|
||||
|
||||
Reference in New Issue
Block a user