Skip to content

Commit 4e4ff46

Browse files
skjnldsvnextcloud-command
authored andcommitted
fix(settings): show group label instead of gid in accounts management
Signed-off-by: skjnldsv <[email protected]>
1 parent 331ed95 commit 4e4ff46

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

apps/settings/src/components/Users/UserRow.vue

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,13 +419,27 @@ export default {
419419
420420
userGroupsLabels() {
421421
return this.userGroups
422-
.map(group => group.name ?? group.id)
422+
.map(group => {
423+
// Try to match with more extensive group data
424+
const availableGroup = this.availableGroups.find(g => g.id === group.id)
425+
if (availableGroup) {
426+
return availableGroup.name ?? availableGroup.id
427+
}
428+
return group.name ?? group.id
429+
})
423430
.join(', ')
424431
},
425432
426433
userSubAdminGroupsLabels() {
427434
return this.userSubAdminGroups
428-
.map(group => group.name ?? group.id)
435+
.map(group => {
436+
// Try to match with more extensive group data
437+
const availableGroup = this.availableSubAdminGroups.find(g => g.id === group.id)
438+
if (availableGroup) {
439+
return availableGroup.name ?? availableGroup.id
440+
}
441+
return group.name ?? group.id
442+
})
429443
.join(', ')
430444
},
431445

0 commit comments

Comments
 (0)