mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
fix: use IS_CLOUD_EDITION for 'Managed by SaaS' tag visibility
Change from !IS_CE_EDITION to IS_CLOUD_EDITION to ensure the tag only shows in cloud edition, not in enterprise or other self-hosted variants.
This commit is contained in:
@ -6,7 +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 { IS_CLOUD_EDITION } from '@/config'
|
||||
import { cn } from '@/utils/classnames'
|
||||
import { PROVIDER_DESCRIPTION_KEYS, PROVIDER_LABEL_KEYS } from './constants'
|
||||
import ProviderIcon from './provider-icon'
|
||||
@ -48,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>
|
||||
{!IS_CE_EDITION && provider.is_system_configured && !provider.is_tenant_configured && (
|
||||
{IS_CLOUD_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>
|
||||
|
||||
Reference in New Issue
Block a user