|
5 | 5 |
|
6 | 6 | <template> |
7 | 7 | <Fragment> |
8 | | - <NcAppNavigationCaption |
9 | | - :name="t('settings', 'Groups')" |
10 | | - :disabled="loadingAddGroup" |
11 | | - :aria-label="loadingAddGroup ? t('settings', 'Creating group…') : t('settings', 'Create group')" |
12 | | - force-menu |
13 | | - is-heading |
14 | | - :open.sync="isAddGroupOpen"> |
15 | | - <template v-if="isAdminOrDelegatedAdmin" #actionsTriggerIcon> |
16 | | - <NcLoadingIcon v-if="loadingAddGroup" /> |
17 | | - <NcIconSvgWrapper v-else :path="mdiPlus" /> |
18 | | - </template> |
19 | | - <template v-if="isAdminOrDelegatedAdmin" #actions> |
20 | | - <NcActionText> |
21 | | - <template #icon> |
22 | | - <NcIconSvgWrapper :path="mdiAccountGroupOutline" /> |
23 | | - </template> |
24 | | - {{ t('settings', 'Create group') }} |
25 | | - </NcActionText> |
26 | | - <NcActionInput |
27 | | - v-model="newGroupName" |
28 | | - :label="t('settings', 'Group name')" |
29 | | - data-cy-users-settings-new-group-name |
30 | | - :label-outside="false" |
31 | | - :disabled="loadingAddGroup" |
32 | | - :error="hasAddGroupError" |
33 | | - :helper-text="hasAddGroupError ? t('settings', 'Please enter a valid group name') : ''" |
34 | | - @submit="createGroup" /> |
35 | | - </template> |
36 | | - </NcAppNavigationCaption> |
37 | | - |
38 | 8 | <p id="group-list-desc" class="hidden-visually"> |
39 | 9 | {{ t('settings', 'List of groups. This list is not fully populated for performance reasons. The groups will be loaded as you navigate or search through the list.') }} |
40 | 10 | </p> |
41 | 11 | <NcAppNavigationList |
42 | 12 | class="account-management__group-list" |
43 | 13 | aria-describedby="group-list-desc" |
44 | 14 | data-cy-users-settings-navigation-groups="custom"> |
| 15 | + <NcAppNavigationCaption |
| 16 | + :name="t('settings', 'Groups')" |
| 17 | + :disabled="loadingAddGroup" |
| 18 | + :aria-label="loadingAddGroup ? t('settings', 'Creating group…') : t('settings', 'Create group')" |
| 19 | + force-menu |
| 20 | + :open.sync="isAddGroupOpen"> |
| 21 | + <template v-if="isAdminOrDelegatedAdmin" #actionsTriggerIcon> |
| 22 | + <NcLoadingIcon v-if="loadingAddGroup" /> |
| 23 | + <NcIconSvgWrapper v-else :path="mdiPlus" /> |
| 24 | + </template> |
| 25 | + <template v-if="isAdminOrDelegatedAdmin" #actions> |
| 26 | + <NcActionText> |
| 27 | + <template #icon> |
| 28 | + <NcIconSvgWrapper :path="mdiAccountGroupOutline" /> |
| 29 | + </template> |
| 30 | + {{ t('settings', 'Create group') }} |
| 31 | + </NcActionText> |
| 32 | + <NcActionInput |
| 33 | + v-model="newGroupName" |
| 34 | + :label="t('settings', 'Group name')" |
| 35 | + data-cy-users-settings-new-group-name |
| 36 | + :label-outside="false" |
| 37 | + :disabled="loadingAddGroup" |
| 38 | + :error="hasAddGroupError" |
| 39 | + :helper-text="hasAddGroupError ? t('settings', 'Please enter a valid group name') : ''" |
| 40 | + @submit="createGroup" /> |
| 41 | + </template> |
| 42 | + </NcAppNavigationCaption> |
45 | 43 | <GroupListItem |
46 | 44 | v-for="group in filteredGroups" |
47 | 45 | :id="group.id" |
|
0 commit comments