Skip to content

Commit

Permalink
fix(php,vue): Define the user count after creating a workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
zak39 committed Nov 19, 2024
1 parent 1fb0afd commit 64840c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Space/SpaceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ public function create(string $spacename): array {
'quota' => $groupfolder['quota'],
'size' => $groupfolder['size'],
'acl' => $groupfolder['acl'],
'manage' => $groupfolder['manage']
'manage' => $groupfolder['manage'],
'userCount' => 0
];
}

Expand Down
1 change: 1 addition & 0 deletions src/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export default {
name,
quota: t('workspace', 'unlimited'),
users: {},
userCount: workspace.userCount
})
this.$router.push({
path: `/workspace/${name}`,
Expand Down
1 change: 1 addition & 0 deletions tests/Unit/Space/SpaceManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ public function testArrayAfterCreatedTheEspace01Workspace(): void {
'displayname' => 'WM-Espace01',
],
],
'userCount' => 0,
]
);
}
Expand Down

0 comments on commit 64840c6

Please sign in to comment.