Unverified Commit b3936f7a authored by zhu-mingye's avatar zhu-mingye Committed by GitHub

[Refactor][web] Re-request interface when switching tenants (#2018)

parent 9686bea2
......@@ -48,7 +48,6 @@ const GlobalHeaderRight: React.FC = () => {
/**
* status
*/
const actionRef = useRef<ActionType>();
const [fullScreen, setFullScreen] = useState(true);
const [themeChecked, setThemeChecked] = useState(false);
const {initialState, setInitialState} = useModel("@@initialState");
......@@ -150,7 +149,8 @@ const GlobalHeaderRight: React.FC = () => {
} else {
ErrorNotification(result.msg);
}
actionRef.current?.reload();
// trigger global refresh, such as reload page
window.location.reload();
},
});
};
......
......@@ -159,7 +159,7 @@ export default () => {
title: l('rc.ci.ar'),
dataIndex: 'autoRegisters',
hideInSearch: true,
width: '5%',
width: '8%',
valueEnum: CLUSTER_INSTANCE_AUTO_REGISTERS_ENUM,
},
{
......@@ -172,7 +172,7 @@ export default () => {
title: l('rc.ci.status'),
dataIndex: 'status',
hideInSearch: true,
width: '6%',
width: '8%',
valueEnum: CLUSTER_INSTANCE_STATUS_ENUM,
},
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment