mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Fleet UI: Add loading spinner to current versions table (#20099)
This commit is contained in:
parent
7a9d29e823
commit
9c4d01712f
1 changed files with 5 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ import {
|
|||
import LastUpdatedText from "components/LastUpdatedText";
|
||||
import SectionHeader from "components/SectionHeader";
|
||||
import DataError from "components/DataError";
|
||||
import Spinner from "components/Spinner";
|
||||
|
||||
import OSVersionTable from "../OSVersionTable";
|
||||
import { OSUpdatesSupportedPlatform } from "../../OSUpdates";
|
||||
|
|
@ -56,6 +57,10 @@ const CurrentVersionSection = ({
|
|||
};
|
||||
|
||||
const renderTable = () => {
|
||||
if (isLoadingOsVersions) {
|
||||
return <Spinner />;
|
||||
}
|
||||
|
||||
if (isError) {
|
||||
return (
|
||||
<DataError
|
||||
|
|
|
|||
Loading…
Reference in a new issue