Refactor info endpoint calls

This commit is contained in:
koalasat 2024-10-17 11:24:21 +02:00
parent 7bf77a538e
commit 463608f9b2
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157
2 changed files with 2 additions and 6 deletions

View File

@ -37,10 +37,6 @@ const SettingsPage = (): JSX.Element => {
}
};
useEffect(() => {
if (page === 'settings') void federation.loadInfo();
}, [page]);
return (
<Paper
elevation={12}

View File

@ -128,9 +128,9 @@ const FederationTable = ({
onClickCoordinator(params.row.shortAlias);
}}
>
{Boolean(params.row.loadingInfo) && Boolean(params.row.enabled) ? (
{Boolean(params.row.loadingLimits) && Boolean(params.row.enabled) ? (
<CircularProgress thickness={0.35 * fontSize} size={1.5 * fontSize} />
) : params.row.info !== undefined ? (
) : params.row.limits !== undefined ? (
<Link color='success' />
) : (
<LinkOff color='error' />