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'), title: t('title.teamAndAuth'),
icon: TeamFillIcon, icon: TeamFillIcon,
subTabs: { subTabs: {
...(isUIAllowed('userMgmtTab') && { ...(isUIAllowed('userMgmtTab')
usersManagement: { ? {
// Users Management usersManagement: {
title: t('title.userMgmt'), // Users Management
body: UserManagement, title: t('title.userMgmt'),
}, body: UserManagement,
}), },
...(isUIAllowed('apiTokenTab') && { }
apiTokenManagement: { : {}),
// API Tokens Management ...(isUIAllowed('apiTokenTab')
title: t('title.apiTokenMgmt'), ? {
body: ApiTokenManagement, apiTokenManagement: {
}, // API Tokens Management
}), title: t('title.apiTokenMgmt'),
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"

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

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

Loading…
Cancel
Save