Skip to content

Commit d8d01d8

Browse files
csilva1-engCarlSchwan
authored andcommitted
fix: user count frontend version
Signed-off-by: csilva1-eng <christophersilva656@gmail.com> Signed-off-by: Carl Schwan <carlschwan@kde.org>
1 parent 0302d60 commit d8d01d8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

apps/settings/src/views/UserManagementNavigation.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,13 @@ const selectedGroup = computed(() => route.params?.selectedGroup)
160160
const selectedGroupDecoded = computed(() => selectedGroup.value ? decodeURIComponent(selectedGroup.value) : null)
161161
162162
/** Overall user count */
163-
const userCount = computed(() => store.getters.getUserCount)
163+
const userCount = computed(() => {
164+
const count = store.getters.getUserCount
165+
166+
return count >= 999 ? '999+' : count
167+
})
168+
169+
164170
/** All available groups */
165171
const groups = computed(() => store.getters.getSortedGroups)
166172
const { adminGroup, recentGroup, disabledGroup } = useFormatGroups(groups)

0 commit comments

Comments
 (0)