Browse Source

Merge pull request #3678 from nocodb/fix/cypress

fix(gui): miscellaneous
pull/3682/head
Pranav C 2 years ago committed by GitHub
parent
commit
ce69e91a20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 32
      packages/nc-gui/components/dashboard/settings/Modal.vue
  2. 2
      packages/nc-gui/components/general/FullScreen.vue
  3. 2
      packages/nc-gui/pages/[projectType]/[projectId]/index.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"

2
packages/nc-gui/pages/[projectType]/[projectId]/index.vue

@ -465,7 +465,7 @@ onBeforeUnmount(reset)
</a-layout-sider>
</template>
<div>
<div :key="$route.fullPath">
<dashboard-settings-modal v-model="dialogOpen" :open-key="openDialogKey" />
<NuxtPage />

Loading…
Cancel
Save