Scheduling infrastructure for absolutely everyone.
add create license key to admin tab if IS_CALCOM (#16721)
sean-brydona60aa1bf6cbc
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.jsonindex f9f106677ed..f1bbb87a14b 100644--- a/apps/web/public/static/locales/en/common.json+++ b/apps/web/public/static/locales/en/common.json@@ -1731,6 +1731,7 @@"already_have_account": "Already have an account?","already_have_key": "I already have a key:","already_have_key_suggestion": "Please copy your existing CALCOM_LICENSE_KEY environment variable here.",+ "create_license_key": "Create License Key","app_is_enabled": "{{appName}} is enabled","app_is_disabled": "{{appName}} is disabled","keys_have_been_saved": "Keys have been saved",diff --git a/packages/features/settings/layouts/SettingsLayout.tsx b/packages/features/settings/layouts/SettingsLayout.tsxindex 2c73ff3f417..0c2db47c13a 100644--- a/packages/features/settings/layouts/SettingsLayout.tsx+++ b/packages/features/settings/layouts/SettingsLayout.tsx@@ -10,7 +10,7 @@ import React, { Suspense, useEffect, useState, useMemo } from "react";import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider";import Shell from "@calcom/features/shell/Shell";import { classNames } from "@calcom/lib";-import { HOSTED_CAL_FEATURES, WEBAPP_URL } from "@calcom/lib/constants";+import { HOSTED_CAL_FEATURES, IS_CALCOM, WEBAPP_URL } from "@calcom/lib/constants";import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage";import { getUserAvatarUrl } from "@calcom/lib/getAvatarUrl";import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";@@ -140,6 +140,9 @@ tabs.find((tab) => {// TODO: Enable dsync for self hosters// tab.children?.push({ name: "directory_sync", href: "/settings/security/dsync" });}+ if (tab.name === "admin" && IS_CALCOM) {+ tab.children?.push({ name: "create_license_key", href: "/settings/license-key/new" });+ }});// The following keys are assigned to admin only