- {shouldShowLicenseWarning && (
+
+
+ {shouldShowLicenseWarning && (
{
currency={currency}
onCurrencyChange={handleCurrencyChange}
currencyOptions={currencyOptions}
+ loginEnabled={loginEnabled}
/>
@@ -288,11 +309,11 @@ const AdminPlanSection: React.FC = () => {
onChange={(e) => setLicenseKeyInput(e.target.value)}
placeholder={licenseInfo?.licenseKey || '00000000-0000-0000-0000-000000000000'}
type="password"
- disabled={savingLicense}
+ disabled={!loginEnabled || savingLicense}
/>
-
diff --git a/frontend/src/proprietary/components/shared/config/configSections/plan/AvailablePlansSection.tsx b/frontend/src/proprietary/components/shared/config/configSections/plan/AvailablePlansSection.tsx
index 80d651893..a3b8800d1 100644
--- a/frontend/src/proprietary/components/shared/config/configSections/plan/AvailablePlansSection.tsx
+++ b/frontend/src/proprietary/components/shared/config/configSections/plan/AvailablePlansSection.tsx
@@ -15,6 +15,7 @@ interface AvailablePlansSectionProps {
currency?: string;
onCurrencyChange?: (currency: string) => void;
currencyOptions?: { value: string; label: string }[];
+ loginEnabled?: boolean;
}
const AvailablePlansSection: React.FC = ({
@@ -25,6 +26,7 @@ const AvailablePlansSection: React.FC = ({
currency,
onCurrencyChange,
currencyOptions,
+ loginEnabled = true,
}) => {
const { t } = useTranslation();
const [showComparison, setShowComparison] = useState(false);
@@ -91,6 +93,7 @@ const AvailablePlansSection: React.FC = ({
clearable={false}
w={300}
comboboxProps={{ withinPortal: true, zIndex: Z_INDEX_OVER_CONFIG_MODAL }}
+ disabled={!loginEnabled}
/>
)}
@@ -113,6 +116,7 @@ const AvailablePlansSection: React.FC = ({
currentTier={currentTier}
onUpgradeClick={onUpgradeClick}
onManageClick={onManageClick}
+ loginEnabled={loginEnabled}
/>
))}
diff --git a/frontend/src/proprietary/components/shared/config/configSections/plan/PlanCard.tsx b/frontend/src/proprietary/components/shared/config/configSections/plan/PlanCard.tsx
index dff579dee..7dff90f8e 100644
--- a/frontend/src/proprietary/components/shared/config/configSections/plan/PlanCard.tsx
+++ b/frontend/src/proprietary/components/shared/config/configSections/plan/PlanCard.tsx
@@ -15,9 +15,10 @@ interface PlanCardProps {
currentTier?: 'free' | 'server' | 'enterprise' | null;
onUpgradeClick: (planGroup: PlanTierGroup) => void;
onManageClick?: () => void;
+ loginEnabled?: boolean;
}
-const PlanCard: React.FC