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. 12
      packages/nc-gui/components/dashboard/settings/Modal.vue
  2. 2
      packages/nc-gui/components/general/FullScreen.vue

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

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

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

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

Loading…
Cancel
Save