π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: enable chatwoot for more than 3 users intances
DarkPhoenix27042596ffdfc421
diff --git a/packages/nc-gui/components/dashboard/MiniSidebar.vue b/packages/nc-gui/components/dashboard/MiniSidebar.vueindex 5ceac0d70e..4caac4ed7b 100644--- a/packages/nc-gui/components/dashboard/MiniSidebar.vue+++ b/packages/nc-gui/components/dashboard/MiniSidebar.vue@@ -24,6 +24,8 @@ const { isUIAllowed } = useRoles()const { setActiveCmdView } = useCommand()+const { isChatWootEnabled } = useProvideChatwoot()+const isProjectListOrHomePageOpen = computed(() => {return (route.value.name?.startsWith('index-typeOrId-baseId-') ||@@ -272,7 +274,7 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => {<DashboardSidebarFeed /></NcTooltip></DashboardMiniSidebarItemWrapper>- <DashboardMiniSidebarItemWrapper v-if="!appInfo.disableSupportChat">+ <DashboardMiniSidebarItemWrapper v-if="isChatWootEnabled"><NcTooltip :title="`${$t('labels.chatWithNocoDBSupport')}!`" placement="right" hide-on-click :arrow="false"><DashboardSidebarChatSupport /></NcTooltip>diff --git a/packages/nc-gui/composables/useProvideChatwoot.ts b/packages/nc-gui/composables/useProvideChatwoot.tsindex 1192ee2228..c79d6e8e23 100644--- a/packages/nc-gui/composables/useProvideChatwoot.ts+++ b/packages/nc-gui/composables/useProvideChatwoot.ts@@ -11,6 +11,8 @@ export const useProvideChatwoot = () => {const chatwootReady = ref(false)+ const isChatWootEnabled = computed(() => !appInfo.value.disableSupportChat && (metaInfo.value?.userCount || 0) > 2)+const initUserCustomerAttributes = () => {if (!chatwootReady.value || ncIsPlaywright() || !user.value?.id || appInfo.value.disableSupportChat) {return@@ -71,5 +73,6 @@ export const useProvideChatwoot = () => {return {chatwootInit,+ isChatWootEnabled,}}