From 8e73cf539a97f65a024f1d837491ec1e595af9fb Mon Sep 17 00:00:00 2001 From: Sebastien Marinier Date: Mon, 10 Jun 2024 12:16:18 +0200 Subject: [PATCH] use snake_case for added_groups propery --- lib/Service/WorkspaceService.php | 2 +- src/SpaceMenuItem.vue | 2 +- src/store/getters.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Service/WorkspaceService.php b/lib/Service/WorkspaceService.php index 39451e94b..e675820c3 100644 --- a/lib/Service/WorkspaceService.php +++ b/lib/Service/WorkspaceService.php @@ -212,7 +212,7 @@ public function addGroupsInfo(array|string $workspace): array { } $workspace['groups'] = GroupFormatter::formatGroups($groups); - $workspace['addedGroups'] = GroupFormatter::formatGroups($addedGroups); + $workspace['added_groups'] = GroupFormatter::formatGroups($addedGroups); return $workspace; } diff --git a/src/SpaceMenuItem.vue b/src/SpaceMenuItem.vue index c8307b13d..43f6a96e9 100644 --- a/src/SpaceMenuItem.vue +++ b/src/SpaceMenuItem.vue @@ -40,7 +40,7 @@ (user, spaceName) => { - const addedGroups = Object.keys(state.spaces[spaceName].addedGroups) + const addedGroups = Object.keys(state.spaces[spaceName].added_groups) const hasAddedGroups = user.groups.filter((group) => addedGroups.includes(group)) return hasAddedGroups.length > 0 }, // Test if group is from space added groups isSpaceAddedGroup: state => (spaceName, groupName) => { const space = state.spaces[spaceName] - return space.addedGroups[groupName] + return space.added_groups[groupName] }, // Tests wheter a group is the GE or U group of a space isGEorUGroup: (state, getters) => (spaceName, gid) => {