Browse Source
refactor(settings): Consolidate group formatting
refactor(settings): Consolidate group formatting
Signed-off-by: Christopher Ng <chrng8@gmail.com>pull/51336/head
5 changed files with 30 additions and 43 deletions
-
13apps/settings/src/components/AppNavigationGroupList.vue
-
5apps/settings/src/components/Users/NewUserDialog.vue
-
5apps/settings/src/components/Users/UserRow.vue
-
28apps/settings/src/service/groups.ts
-
22apps/settings/src/utils/groups.ts
@ -1,22 +0,0 @@ |
|||
/** |
|||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors |
|||
* SPDX-License-Identifier: AGPL-3.0-or-later |
|||
*/ |
|||
|
|||
export interface Group { |
|||
id: string |
|||
displayname: string |
|||
usercount: number |
|||
disabled: number |
|||
canAdd: boolean |
|||
canRemove: boolean |
|||
} |
|||
|
|||
export const formatGroup = (group: Group) => ({ |
|||
id: group.id, |
|||
name: group.displayname, |
|||
usercount: group.usercount, |
|||
disabled: group.disabled, |
|||
canAdd: group.canAdd, |
|||
canRemove: group.canRemove, |
|||
}) |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue