This is an automated email from the ASF dual-hosted git repository. hefengen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git
The following commit(s) were added to refs/heads/master by this push: new 4da8803a [Feature] Add Notification for Non-Default Namespace: "Namespace Development in Progress" (#473) 4da8803a is described below commit 4da8803abf4cbaaf060ca5b3886c15f1c03c8e38 Author: VampireAchao <ac...@apache.org> AuthorDate: Tue Aug 20 16:05:36 2024 +0800 [Feature] Add Notification for Non-Default Namespace: "Namespace Development in Progress" (#473) --- src/components/GlobalHeader/index.js | 14 +++++++++++++- src/locales/en-US.json | 1 + src/locales/zh-CN.json | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/components/GlobalHeader/index.js b/src/components/GlobalHeader/index.js index b1c0a851..faba06cc 100644 --- a/src/components/GlobalHeader/index.js +++ b/src/components/GlobalHeader/index.js @@ -16,7 +16,16 @@ */ import React, { PureComponent } from "react"; -import { Button, Dropdown, Form, Icon, Input, Menu, Modal } from "antd"; +import { + Button, + Dropdown, + Form, + Icon, + Input, + Menu, + message, + Modal, +} from "antd"; import { connect } from "dva"; import AddModal from "./AddModal"; import ImportResultModal from "./ImportResultModal"; @@ -152,6 +161,9 @@ class GlobalHeader extends PureComponent { type: "global/saveCurrentNamespaceId", payload: value.key, }); + if (value.key !== "649330b6-c2d7-4edc-be8e-8a54df9eb385") { + message.warn(getIntlContent("SHENYU.NAMESPACE.ALERTNAMESPACEID.CHANGED")); + } }; importConfigClick = () => { diff --git a/src/locales/en-US.json b/src/locales/en-US.json index 7e2a7779..02d19fb4 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -440,5 +440,6 @@ "SHENYU.NAMESPACE.INPUTDESC":"description", "SHENYU.NAMESPACE.INPUTNAMESPACEID":"namespaceId", "SHENYU.NAMESPACE.ALERTNAMESPACEID":"Automatically generated namespaceId", + "SHENYU.NAMESPACE.ALERTNAMESPACEID.CHANGED":"Namespace development in progress", "SHENYU.MENU.SYSTEM.MANAGMENT.NAMESPACEPLUGIN":"Plugin" } diff --git a/src/locales/zh-CN.json b/src/locales/zh-CN.json index 6ef2c2b7..a606e1ae 100644 --- a/src/locales/zh-CN.json +++ b/src/locales/zh-CN.json @@ -446,5 +446,6 @@ "SHENYU.NAMESPACE.INPUTDESC":"请输入命名空间描述", "SHENYU.NAMESPACE.INPUTNAMESPACEID":"请输入namespaceId", "SHENYU.NAMESPACE.ALERTNAMESPACEID":"系统自动生成namespaceId", + "SHENYU.NAMESPACE.ALERTNAMESPACEID.CHANGED":"命名空间开发中", "SHENYU.MENU.SYSTEM.MANAGMENT.NAMESPACEPLUGIN":"插件管理" }