From 3322710dacc72b35223b2242357eb508117d945d Mon Sep 17 00:00:00 2001 From: "Charlie.Wei" Date: Fri, 26 Jan 2024 13:23:06 +0800 Subject: [PATCH] Maintenance notice href (#2227) Co-authored-by: luowei Co-authored-by: crazywoola <427733928@qq.com> Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com> --- web/app/components/header/maintenance-notice.tsx | 8 +++++--- web/utils/language.ts | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/web/app/components/header/maintenance-notice.tsx b/web/app/components/header/maintenance-notice.tsx index 283beeb0b0..3c3f9d7cef 100644 --- a/web/app/components/header/maintenance-notice.tsx +++ b/web/app/components/header/maintenance-notice.tsx @@ -7,7 +7,9 @@ import { NOTICE_I18N } from '@/utils/language' const MaintenanceNotice = () => { const { locale } = useContext(I18n) const [showNotice, setShowNotice] = useState(localStorage.getItem('hide-maintenance-notice') !== '1') - + const handleJumpNotice = () => { + window.open(NOTICE_I18N.href, '_blank') + } const handleCloseNotice = () => { localStorage.setItem('hide-maintenance-notice', '1') setShowNotice(false) @@ -22,8 +24,8 @@ const MaintenanceNotice = () => { return (
{titleByLocale[locale]}
-
{descByLocale[locale]}
- +
{descByLocale[locale]}
+
) } diff --git a/web/utils/language.ts b/web/utils/language.ts index e5d6343827..ce09671fb3 100644 --- a/web/utils/language.ts +++ b/web/utils/language.ts @@ -102,4 +102,5 @@ export const NOTICE_I18N = { 'ja-JP': 'Our system will be unavailable from 19:00 to 24:00 UTC on August 28 for an upgrade. For questions, kindly contact our support team (support@dify.ai). We value your patience.', 'ko-KR': 'Our system will be unavailable from 19:00 to 24:00 UTC on August 28 for an upgrade. For questions, kindly contact our support team (support@dify.ai). We value your patience.', }, + href: '#', }