+ {systemFeatures.branding.enabled && systemFeatures.branding.workspace_logo
+ ?
© {dayjs().year()} LangGenius, Inc., Contributors.
diff --git a/web/app/components/header/index.tsx b/web/app/components/header/index.tsx
index 6e8d1704dd..a9c26e0070 100644
--- a/web/app/components/header/index.tsx
+++ b/web/app/components/header/index.tsx
@@ -21,6 +21,7 @@ import { useModalContext } from '@/context/modal-context'
import PlanBadge from './plan-badge'
import LicenseNav from './license-env'
import { Plan } from '../billing/type'
+import { useGlobalPublicStore } from '@/context/global-public-context'
const navClassName = `
flex items-center relative mr-0 sm:mr-3 px-3 h-8 rounded-xl
@@ -36,6 +37,7 @@ const Header = () => {
const [isShowNavMenu, { toggle, setFalse: hideNavMenu }] = useBoolean(false)
const { enableBilling, plan } = useProviderContext()
const { setShowPricingModal, setShowAccountSettingModal } = useModalContext()
+ const systemFeatures = useGlobalPublicStore(s => s.systemFeatures)
const isFreePlan = plan.type === Plan.sandbox
const handlePlanClick = useCallback(() => {
if (isFreePlan)
@@ -61,7 +63,13 @@ const Header = () => {
!isMobile
&&
-
+ {systemFeatures.branding.enabled && systemFeatures.branding.workspace_logo
+ ?

+ :
}
/
@@ -76,7 +84,13 @@ const Header = () => {
{isMobile && (
-
+ {systemFeatures.branding.enabled && systemFeatures.branding.workspace_logo
+ ?

+ :
}
/
{enableBilling ?
:
}
diff --git a/web/app/components/share/text-generation/index.tsx b/web/app/components/share/text-generation/index.tsx
index 5450fa7ce6..6fd6d17278 100644
--- a/web/app/components/share/text-generation/index.tsx
+++ b/web/app/components/share/text-generation/index.tsx
@@ -641,11 +641,13 @@ const TextGeneration: FC
= ({
!isPC && resultExisted && 'rounded-b-2xl border-b-[0.5px] border-divider-regular',
)}>
{t('share.chat.poweredBy')}
- {systemFeatures.branding.enabled ? (
-
- ) : (
-
- )}
+ {
+ systemFeatures.branding.enabled && systemFeatures.branding.workspace_logo
+ ?
+ : customConfig?.replace_webapp_logo
+ ?
+ :
+ }
)}
diff --git a/web/app/signin/_header.tsx b/web/app/signin/_header.tsx
index 5e85a8d306..0efd30b6cc 100644
--- a/web/app/signin/_header.tsx
+++ b/web/app/signin/_header.tsx
@@ -7,6 +7,7 @@ import { languages } from '@/i18n/language'
import type { Locale } from '@/i18n'
import I18n from '@/context/i18n'
import dynamic from 'next/dynamic'
+import { useGlobalPublicStore } from '@/context/global-public-context'
// Avoid rendering the logo and theme selector on the server
const DifyLogo = dynamic(() => import('@/app/components/base/logo/dify-logo'), {
@@ -20,10 +21,17 @@ const ThemeSelector = dynamic(() => import('@/app/components/base/theme-selector
const Header = () => {
const { locale, setLocaleOnClient } = useContext(I18n)
+ const systemFeatures = useGlobalPublicStore(s => s.systemFeatures)
return (
-
+ {systemFeatures.branding.enabled && systemFeatures.branding.login_page_logo
+ ?

+ :
}