From 7d40b29ae88e2bf19c12f339b04c1fabc665031c Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 9 Jan 2021 15:09:26 +0100 Subject: [PATCH] Fix resetting list rights after updating the list --- src/store/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/store/index.js b/src/store/index.js index e11ceb22..5fa8da49 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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) {