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 = () => { ...@@ -48,7 +48,6 @@ const GlobalHeaderRight: React.FC = () => {
/** /**
* status * status
*/ */
const actionRef = useRef<ActionType>();
const [fullScreen, setFullScreen] = useState(true); const [fullScreen, setFullScreen] = useState(true);
const [themeChecked, setThemeChecked] = useState(false); const [themeChecked, setThemeChecked] = useState(false);
const {initialState, setInitialState} = useModel("@@initialState"); const {initialState, setInitialState} = useModel("@@initialState");
...@@ -150,7 +149,8 @@ const GlobalHeaderRight: React.FC = () => { ...@@ -150,7 +149,8 @@ const GlobalHeaderRight: React.FC = () => {
} else { } else {
ErrorNotification(result.msg); ErrorNotification(result.msg);
} }
actionRef.current?.reload(); // trigger global refresh, such as reload page
window.location.reload();
}, },
}); });
}; };
......
...@@ -159,7 +159,7 @@ export default () => { ...@@ -159,7 +159,7 @@ export default () => {
title: l('rc.ci.ar'), title: l('rc.ci.ar'),
dataIndex: 'autoRegisters', dataIndex: 'autoRegisters',
hideInSearch: true, hideInSearch: true,
width: '5%', width: '8%',
valueEnum: CLUSTER_INSTANCE_AUTO_REGISTERS_ENUM, valueEnum: CLUSTER_INSTANCE_AUTO_REGISTERS_ENUM,
}, },
{ {
...@@ -172,7 +172,7 @@ export default () => { ...@@ -172,7 +172,7 @@ export default () => {
title: l('rc.ci.status'), title: l('rc.ci.status'),
dataIndex: 'status', dataIndex: 'status',
hideInSearch: true, hideInSearch: true,
width: '6%', width: '8%',
valueEnum: CLUSTER_INSTANCE_STATUS_ENUM, 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