Fix resetting list rights after updating the list
This commit is contained in:
parent
36f5f0eabc
commit
7d40b29ae8
1 changed files with 6 additions and 0 deletions
|
@ -103,6 +103,12 @@ export const store = new Vuex.Store({
|
|||
}
|
||||
}
|
||||
|
||||
// Server updates don't return the right. Therefore the right is reset after updating the list which is
|
||||
// confusing because all the buttons will disappear in that case. To prevent this, we're keeping the right
|
||||
// when updating the list in global state.
|
||||
if(typeof state.currentList.maxRight !== 'undefined') {
|
||||
currentList.maxRight = state.currentList.maxRight
|
||||
}
|
||||
state.currentList = currentList
|
||||
},
|
||||
[HAS_TASKS](state, hasTasks) {
|
||||
|
|
Loading…
Reference in a new issue