Skip to content

Commit a0b5350

Browse files
committed
fix: user count frontend version
Signed-off-by: csilva1-eng <christophersilva656@gmail.com>
1 parent 2524490 commit a0b5350

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
@@ -135,7 +135,13 @@ const selectedGroup = computed(() => route.params?.selectedGroup)
135135
const selectedGroupDecoded = computed(() => selectedGroup.value ? decodeURIComponent(selectedGroup.value) : null)
136136
137137
/** Overall user count */
138-
const userCount = computed(() => store.getters.getUserCount)
138+
const userCount = computed(() => {
139+
const count = store.getters.getUserCount
140+
141+
return count >= 999 ? '999+' : 0
142+
})
143+
144+
139145
/** All available groups */
140146
const groups = computed(() => store.getters.getSortedGroups)
141147
const { adminGroup, recentGroup, disabledGroup } = useFormatGroups(groups)

0 commit comments

Comments
 (0)