This is an automated email from the ASF dual-hosted git repository.
liuhongyu 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 cec0655a pass in the namespace_id when create alert_receiver (#563)
cec0655a is described below
commit cec0655a08f188ffc83a1435f693106577f60e0e
Author: eye-gu <[email protected]>
AuthorDate: Wed Jan 28 09:32:24 2026 +0800
pass in the namespace_id when create alert_receiver (#563)
---
src/routes/System/Alert/index.js | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/routes/System/Alert/index.js b/src/routes/System/Alert/index.js
index 47138529..7a8d9d3b 100644
--- a/src/routes/System/Alert/index.js
+++ b/src/routes/System/Alert/index.js
@@ -75,7 +75,7 @@ export default class Alert extends Component {
};
editClick = (record) => {
- const { dispatch } = this.props;
+ const { dispatch, currentNamespaceId } = this.props;
const { currentPage, pageSize } = this.state;
dispatch({
type: "alert/fetchItem",
@@ -90,7 +90,11 @@ export default class Alert extends Component {
handleOk={(values) => {
dispatch({
type: "alert/update",
- payload: { ...alert, ...values },
+ payload: {
+ ...alert,
+ ...values,
+ namespaceId: currentNamespaceId,
+ },
fetchValue: {
currentPage,
pageSize,
@@ -143,6 +147,7 @@ export default class Alert extends Component {
addClick = () => {
const { currentPage, pageSize } = this.state;
+ const { currentNamespaceId } = this.props;
this.setState({
popup: (
<AddModal
@@ -151,7 +156,7 @@ export default class Alert extends Component {
const { dispatch } = this.props;
dispatch({
type: "alert/add",
- payload: values,
+ payload: { ...values, namespaceId: currentNamespaceId },
fetchValue: {
currentPage,
pageSize,
@@ -186,7 +191,7 @@ export default class Alert extends Component {
}
render() {
- const { alert, loading, dispatch } = this.props;
+ const { alert, loading, dispatch, currentNamespaceId } = this.props;
const { alertList, total } = alert;
const { currentPage, pageSize, selectedRowKeys, popup } = this.state;
const alertColumns = [
@@ -241,6 +246,7 @@ export default class Alert extends Component {
payload: {
...row,
enable: checked,
+ namespaceId: currentNamespaceId,
},
callback: () => {
this.getAllAlerts();