diff --git a/packages/nc-gui/pages/index/index/index.vue b/packages/nc-gui/pages/index/index/index.vue index 13db5064b7..8586c51f76 100644 --- a/packages/nc-gui/pages/index/index/index.vue +++ b/packages/nc-gui/pages/index/index/index.vue @@ -14,6 +14,7 @@ import { ref, themeV2Colors, useApi, + useGlobal, useNuxtApp, useUIPermission, } from '#imports' @@ -32,6 +33,8 @@ const filterQuery = ref('') const projects = ref() +const { appInfo } = useGlobal() + const loadProjects = async () => { const response = await api.project.list({}) projects.value = response.list @@ -177,7 +180,7 @@ onBeforeMount(loadProjects) - +
, res) { }, ]; } else { + if (process.env.NC_CONNECT_TO_EXTERNAL_DB_DISABLED) { + NcError.badRequest('Connecting to external db is disabled'); + } projectBody.is_meta = false; }