Add frontend for assigning groups to cards

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-03-22 14:50:02 +01:00
parent 3c6a177da9
commit d6eac1b11a
12 changed files with 198 additions and 160 deletions

View File

@@ -78,8 +78,12 @@ export default new Vuex.Store({
boards: state => {
return state.boards
},
sharees: state => {
return state.sharees
assignables: state => {
return [
...state.assignableUsers.map((user) => ({ ...user, type: 0 })),
...state.currentBoard.acl.filter((acl) => acl.type === 1 && typeof acl.participant === 'object').map((group) => ({ ...group.participant, type: 1 })),
...state.currentBoard.acl.filter((acl) => acl.type === 7 && typeof acl.participant === 'object').map((circle) => ({ ...circle.participant, type: 7 })),
]
},
noneArchivedBoards: state => {
return state.boards.filter(board => {