You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by de...@apache.org on 2024/03/13 06:48:23 UTC
(shenyu-dashboard) branch master updated: When adding alarm data, the notification mode selects the email by default, and one click less (#393)
This is an automated email from the ASF dual-hosted git repository.
dengliming 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 59ac8aec When adding alarm data, the notification mode selects the email by default, and one click less (#393)
59ac8aec is described below
commit 59ac8aec73a6be6e4fc4c20b5488021f9e20e9a3
Author: Kerwin Bryant <ke...@qq.com>
AuthorDate: Wed Mar 13 14:48:18 2024 +0800
When adding alarm data, the notification mode selects the email by default, and one click less (#393)
---
src/routes/System/Alert/index.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/routes/System/Alert/index.js b/src/routes/System/Alert/index.js
index 74a70ece..e342216b 100644
--- a/src/routes/System/Alert/index.js
+++ b/src/routes/System/Alert/index.js
@@ -24,6 +24,8 @@ import { getCurrentLocale, getIntlContent } from "../../../utils/IntlUtils";
import AuthButton from "../../../utils/AuthButton";
import { Type } from "./globalData";
+const DEFAULT_ALERT_TYPE = 1;
+
@connect(({ alert, loading }) => ({
alert,
loading: loading.effects["alert/fetch"]
@@ -144,6 +146,7 @@ export default class Alert extends Component {
this.setState({
popup: (
<AddModal
+ type={DEFAULT_ALERT_TYPE}
handleOk={values => {
const { dispatch } = this.props;
dispatch({