fix: lose data after changed filters in Overview (#19)
* fix: lose data after changed filters in `Overview` * chore: add locales for `Audit` --------- Co-authored-by: yaojiping <yaojiping@infini.ltd>
This commit is contained in:
parent
667cf0580c
commit
9798ec9eb2
|
@ -57,12 +57,12 @@ export default [
|
||||||
component: "./Platform/Overview/Cluster/Monitor/index",
|
component: "./Platform/Overview/Cluster/Monitor/index",
|
||||||
hideInMenu: true,
|
hideInMenu: true,
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
path: "/cluster/monitor/hosts/:host_id",
|
// path: "/cluster/monitor/hosts/:host_id",
|
||||||
name: "monitoring_overview_hosts",
|
// name: "monitoring_overview_hosts",
|
||||||
component: "./Platform/Overview/Host/Monitor/index",
|
// component: "./Platform/Overview/Host/Monitor/index",
|
||||||
hideInMenu: true,
|
// hideInMenu: true,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
path: "/cluster/monitor/:cluster_id/nodes/:node_id",
|
path: "/cluster/monitor/:cluster_id/nodes/:node_id",
|
||||||
name: "monitoring_overview_nodes",
|
name: "monitoring_overview_nodes",
|
||||||
|
@ -456,7 +456,7 @@ export default [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/system/audit",
|
path: "/system/audit",
|
||||||
name: "audit",
|
name: "audit_logs",
|
||||||
component: "./System/Audit/index",
|
component: "./System/Audit/index",
|
||||||
authority: ["system.audit_logs:all", "system.audit_logs:read"],
|
authority: ["system.audit_logs:all", "system.audit_logs:read"],
|
||||||
},
|
},
|
||||||
|
|
|
@ -45,7 +45,7 @@ export default forwardRef((props, ref) => {
|
||||||
|
|
||||||
const onClose = () => {
|
const onClose = () => {
|
||||||
setVisible();
|
setVisible();
|
||||||
if (tabRef.current.resetCode) tabRef.current.resetCode();
|
if (tabRef.current?.resetCode) tabRef.current.resetCode();
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -212,6 +212,7 @@ export default forwardRef((props: IProps, ref: any) => {
|
||||||
filters,
|
filters,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
dispatch({ type: "pagination", value: 1 })
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
|
@ -254,7 +254,7 @@ export default {
|
||||||
"menu.system.security.users": "USERS",
|
"menu.system.security.users": "USERS",
|
||||||
"menu.system.security.certs": "CERTS",
|
"menu.system.security.certs": "CERTS",
|
||||||
|
|
||||||
"menu.system.audit": "AUDIT",
|
"menu.system.audit_logs": "AUDIT",
|
||||||
|
|
||||||
"menu.system.logs": "LOGS",
|
"menu.system.logs": "LOGS",
|
||||||
"menu.system.logs.overview": "OVERVIEW",
|
"menu.system.logs.overview": "OVERVIEW",
|
||||||
|
|
|
@ -259,7 +259,7 @@ export default {
|
||||||
"menu.system.security.users": "用户管理",
|
"menu.system.security.users": "用户管理",
|
||||||
"menu.system.security.certs": "证书管理",
|
"menu.system.security.certs": "证书管理",
|
||||||
|
|
||||||
"menu.system.audit": "审计日志",
|
"menu.system.audit_logs": "审计日志",
|
||||||
|
|
||||||
"menu.system.logs": "系统日志",
|
"menu.system.logs": "系统日志",
|
||||||
"menu.system.logs.overview": "日志概要",
|
"menu.system.logs.overview": "日志概要",
|
||||||
|
|
|
@ -46,15 +46,15 @@ const panes = [
|
||||||
return <Icon type="table" />;
|
return <Icon type="table" />;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: "Hosts",
|
// title: "Hosts",
|
||||||
component: Host,
|
// component: Host,
|
||||||
key: "hosts",
|
// key: "hosts",
|
||||||
count: 0,
|
// count: 0,
|
||||||
icon: () => {
|
// icon: () => {
|
||||||
return <Icon component={HostsSvg} />;
|
// return <Icon component={HostsSvg} />;
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
];
|
];
|
||||||
|
|
||||||
const NewOverview = (props) => {
|
const NewOverview = (props) => {
|
||||||
|
|
Loading…
Reference in New Issue