diff --git a/app/client/src/ce/utils/licenseHelpers.ts b/app/client/src/ce/utils/licenseHelpers.ts new file mode 100644 index 0000000000..c48fe56460 --- /dev/null +++ b/app/client/src/ce/utils/licenseHelpers.ts @@ -0,0 +1 @@ +export const getLicenseKey = () => ""; diff --git a/app/client/src/components/designSystems/appsmith/help/DocumentationSearch.tsx b/app/client/src/components/designSystems/appsmith/help/DocumentationSearch.tsx index 44bec5eb74..73469d8a8c 100644 --- a/app/client/src/components/designSystems/appsmith/help/DocumentationSearch.tsx +++ b/app/client/src/components/designSystems/appsmith/help/DocumentationSearch.tsx @@ -93,7 +93,7 @@ function DefaultHelpMenuItem(props: { if (props.item.link) window.open(props.item.link, "_blank"); if (props.item.id === "intercom-trigger") { if (intercomAppID && window.Intercom) { - if (user?.isIntercomConsentGiven) { + if (user?.isIntercomConsentGiven || cloudHosting) { window.Intercom("show"); } else { props.showIntercomConsent(true); diff --git a/app/client/src/ee/utils/licenseHelpers.ts b/app/client/src/ee/utils/licenseHelpers.ts new file mode 100644 index 0000000000..7e89ddc21c --- /dev/null +++ b/app/client/src/ee/utils/licenseHelpers.ts @@ -0,0 +1 @@ +export * from "ce/utils/licenseHelpers"; diff --git a/app/client/src/utils/bootIntercom.ts b/app/client/src/utils/bootIntercom.ts index 82b4eb0b0d..be1d64286e 100644 --- a/app/client/src/utils/bootIntercom.ts +++ b/app/client/src/utils/bootIntercom.ts @@ -1,6 +1,7 @@ import type { User } from "constants/userConstants"; import { getAppsmithConfigs } from "@appsmith/configs"; import { sha256 } from "js-sha256"; +import { getLicenseKey } from "@appsmith/utils/licenseHelpers"; const { appVersion, cloudHosting, intercomAppID } = getAppsmithConfigs(); @@ -35,7 +36,7 @@ export const updateIntercomProperties = (instanceId: string, user?: User) => { !cloudHosting ? appVersion.edition : "" } ${appVersion.id}`, instanceId, - "License ID": "3rd license", + "License ID": getLicenseKey(), }); } };