Browse Source

fix(gui): auth and token tab missing

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3678/head
Pranav C 2 years ago
parent
commit
0a95987acf
  1. 32
      packages/nc-gui/components/dashboard/settings/Modal.vue
  2. 2
      packages/nc-gui/components/general/FullScreen.vue

32
packages/nc-gui/components/dashboard/settings/Modal.vue

@ -53,20 +53,24 @@ const tabsInfo: TabGroup = {
title: t('title.teamAndAuth'),
icon: TeamFillIcon,
subTabs: {
...(isUIAllowed('userMgmtTab') && {
usersManagement: {
// Users Management
title: t('title.userMgmt'),
body: UserManagement,
},
}),
...(isUIAllowed('apiTokenTab') && {
apiTokenManagement: {
// API Tokens Management
title: t('title.apiTokenMgmt'),
body: ApiTokenManagement,
},
}),
...(isUIAllowed('userMgmtTab')
? {
usersManagement: {
// Users Management
title: t('title.userMgmt'),
body: UserManagement,
},
}
: {}),
...(isUIAllowed('apiTokenTab')
? {
apiTokenManagement: {
// API Tokens Management
title: t('title.apiTokenMgmt'),
body: ApiTokenManagement,
},
}
: {}),
},
onClick: () => {
$e('c:settings:team-auth')

2
packages/nc-gui/components/general/FullScreen.vue

@ -16,7 +16,7 @@ const isSidebarsOpen = computed({
<template>
<a-tooltip>
<!-- todo: i18n -->
<template #title> {{ isSidebarsOpen ? 'Full width': 'Exit full width' }}</template>
<template #title> {{ isSidebarsOpen ? 'Full width' : 'Exit full width' }}</template>
<div
v-e="['c:toolbar:fullscreen']"
class="nc-fullscreen-btn cursor-pointer flex align-center self-center px-2 py-2 mr-2"

Loading…
Cancel
Save