fix: hide 'Managed by SaaS' tag in CE edition for sandbox providers

The tag should only display in SaaS version since CE edition also has
system config from migrations but the label is misleading for self-hosted.
This commit is contained in:
yyh
2026-01-26 11:33:13 +08:00
parent 902468e3e0
commit 4f75d7f8e2

View File

@@ -6,6 +6,7 @@ import { memo } from 'react'
import { useTranslation } from 'react-i18next'
import Button from '@/app/components/base/button'
import Indicator from '@/app/components/header/indicator'
import { IS_CE_EDITION } from '@/config'
import { cn } from '@/utils/classnames'
import { PROVIDER_DESCRIPTION_KEYS, PROVIDER_LABEL_KEYS } from './constants'
import ProviderIcon from './provider-icon'
@@ -47,7 +48,7 @@ const ProviderCard = ({
<span className="system-md-semibold text-text-primary">
{t(PROVIDER_LABEL_KEYS[provider.provider_type as keyof typeof PROVIDER_LABEL_KEYS] ?? 'sandboxProvider.e2b.label', { ns: 'common' })}
</span>
{provider.is_system_configured && !provider.is_tenant_configured && (
{!IS_CE_EDITION && provider.is_system_configured && !provider.is_tenant_configured && (
<span className="system-2xs-medium rounded-[5px] border border-divider-deep px-[5px] py-[3px] text-text-tertiary">
{t('sandboxProvider.managedBySaas', { ns: 'common' })}
</span>