Show missing loading placeholders

This commit is contained in:
schroda
2024-04-27 16:24:55 +02:00
parent 35b756e09c
commit 626c4ba6e6
9 changed files with 52 additions and 7 deletions

View File

@@ -201,7 +201,7 @@ export function About() {
useSetDefaultBackTo('settings');
const { data } = requestManager.useGetAbout();
const { data, loading } = requestManager.useGetAbout();
const { aboutServer, aboutWebUI } = data ?? {};
const {
@@ -235,6 +235,10 @@ export function About() {
!!selectedServerChannelInfo?.tag && selectedServerChannelInfo.tag !== getVersion(aboutServer);
const isWebUIUpdateAvailable = !!webUIUpdateData?.checkForWebUIUpdate.updateAvailable;
if (loading) {
return <LoadingPlaceholder />;
}
return (
<List>
<List