Hide UI elements that are not used when archived

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-05-23 17:58:37 +02:00
parent ddb59c8f66
commit 7b5bda4ed3
7 changed files with 18 additions and 11 deletions

View File

@@ -122,6 +122,9 @@ export default new Vuex.Store({
canShare: state => {
return state.currentBoard ? state.currentBoard.permissions.PERMISSION_SHARE : false
},
isArchived: state => {
return state.currentBoard && state.currentBoard.archived
}
},
mutations: {
setSearchQuery(state, searchQuery) {