Browse Source

fix(gui): hide external db project creation option if disabled

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3948/head
Pranav C 2 years ago
parent
commit
c8bc89fd09
  1. 5
      packages/nc-gui/pages/index/index/index.vue

5
packages/nc-gui/pages/index/index/index.vue

@ -16,6 +16,7 @@ import {
useApi,
useNuxtApp,
useUIPermission,
useGlobal
} from '#imports'
definePageMeta({
@ -32,6 +33,8 @@ const filterQuery = ref('')
const projects = ref<ProjectType[]>()
const { appInfo, } = $(useGlobal())
const loadProjects = async () => {
const response = await api.project.list({})
projects.value = response.list
@ -177,7 +180,7 @@ onBeforeMount(loadProjects)
</div>
</a-menu-item>
<a-menu-item>
<a-menu-item v-if="appInfo.connectToExternalDB">
<div
v-e="['c:project:create:extdb']"
class="nc-project-menu-item group nc-create-external-db-project"

Loading…
Cancel
Save