|
33 | 33 | </NcCounterBubble> |
34 | 34 | <MenuItemSelector /> |
35 | 35 | <div v-if="isOpen"> |
36 | | - <NcAppNavigationCaption |
37 | | - ref="navigationGroup" |
38 | | - :name="t('workspace', 'Workspace groups')"> |
39 | | - <template #actionsTriggerIcon> |
40 | | - <Plus v-tooltip.right="t('workspace', 'Create a workspace group')" :name="t('workspace', 'Create a workspace group')" :size="20" /> |
41 | | - </template> |
42 | | - <template #actions> |
43 | | - <NcActionText :class="'space-text'"> |
44 | | - {{ t('workspace', 'Create a workspace group') }} |
45 | | - </NcActionText> |
46 | | - <NcActionInput v-show="true" |
47 | | - ref="createGroupInput" |
48 | | - :class="'ws-modal-action'" |
49 | | - icon="icon-group" |
50 | | - :close-after-click="true" |
51 | | - :show-trailing-button="true" |
52 | | - @submit="onNewWorkspaceGroup" /> |
53 | | - </template> |
54 | | - </NcAppNavigationCaption> |
55 | | - |
56 | | - <GroupMenuItem |
57 | | - v-for="group in sortedGroups(Object.values(space.groups ?? []), spaceName)" |
58 | | - :key="group.gid" |
59 | | - :group="group" |
60 | | - :count="group.usersCount" |
61 | | - :space-id="space.id" |
62 | | - :space-name="spaceName" /> |
63 | | - <NcAppNavigationCaption |
64 | | - :name="t('workspace', 'Added groups')"> |
65 | | - <template #actions> |
66 | | - <NcActionButton |
67 | | - :aria-label="t('workspace', 'Add a group')" |
68 | | - @click="toggleAddGroupModal"> |
69 | | - <template #icon> |
70 | | - <Plus v-tooltip.right="t('workspace', 'Add a group')" :size="20" /> |
71 | | - </template> |
72 | | - </NcActionButton> |
73 | | - </template> |
74 | | - </NcAppNavigationCaption> |
75 | | - <SelectConnectedGroups v-if="isAddGroupModalOpen" :space="space" @close="toggleAddGroupModal" /> |
76 | | - <GroupMenuItem |
77 | | - v-for="group in sortedGroups(Object.values(space.added_groups ?? []), spaceName)" |
78 | | - :key="group.gid" |
79 | | - :group="group" |
80 | | - :space-id="space.id" |
81 | | - :space-name="spaceName" |
82 | | - :count="group.usersCount" |
83 | | - :added-group="true" /> |
84 | | - </div> |
| 36 | + <NcAppNavigationCaption |
| 37 | + ref="navigationGroup" |
| 38 | + :name="t('workspace', 'Workspace groups')"> |
| 39 | + <template #actionsTriggerIcon> |
| 40 | + <Plus v-tooltip.right="t('workspace', 'Create a workspace group')" :name="t('workspace', 'Create a workspace group')" :size="20" /> |
| 41 | + </template> |
| 42 | + <template #actions> |
| 43 | + <NcActionText :class="'space-text'"> |
| 44 | + {{ t('workspace', 'Create a workspace group') }} |
| 45 | + </NcActionText> |
| 46 | + <NcActionInput v-show="true" |
| 47 | + ref="createGroupInput" |
| 48 | + :class="'ws-modal-action'" |
| 49 | + icon="icon-group" |
| 50 | + :close-after-click="true" |
| 51 | + :show-trailing-button="true" |
| 52 | + @submit="onNewWorkspaceGroup" /> |
| 53 | + </template> |
| 54 | + </NcAppNavigationCaption> |
| 55 | + |
| 56 | + <GroupMenuItem |
| 57 | + v-for="group in sortedGroups(Object.values(space.groups ?? []), spaceName)" |
| 58 | + :key="group.gid" |
| 59 | + :group="group" |
| 60 | + :count="group.usersCount" |
| 61 | + :space-id="space.id" |
| 62 | + :space-name="spaceName" /> |
| 63 | + <NcAppNavigationCaption |
| 64 | + :name="t('workspace', 'Added groups')"> |
| 65 | + <template #actions> |
| 66 | + <NcActionButton |
| 67 | + :aria-label="t('workspace', 'Add a group')" |
| 68 | + @click="toggleAddGroupModal"> |
| 69 | + <template #icon> |
| 70 | + <Plus v-tooltip.right="t('workspace', 'Add a group')" :size="20" /> |
| 71 | + </template> |
| 72 | + </NcActionButton> |
| 73 | + </template> |
| 74 | + </NcAppNavigationCaption> |
| 75 | + <SelectConnectedGroups v-if="isAddGroupModalOpen" :space="space" @close="toggleAddGroupModal" /> |
| 76 | + <GroupMenuItem |
| 77 | + v-for="group in sortedGroups(Object.values(space.added_groups ?? []), spaceName)" |
| 78 | + :key="group.gid" |
| 79 | + :group="group" |
| 80 | + :space-id="space.id" |
| 81 | + :space-name="spaceName" |
| 82 | + :count="group.usersCount" |
| 83 | + :added-group="true" /> |
| 84 | + </div> |
85 | 85 | </NcAppNavigationItem> |
86 | 86 | </template> |
87 | 87 |
|
|
0 commit comments