AppCockpit: render not ready component

Render the nont ready component when the osbuild-composer.socket is
not running.
This commit is contained in:
Gianluca Zuccarelli 2025-02-04 12:44:04 +00:00 committed by Sanne Raymaekers
parent 87ce805c74
commit a27c300431

View file

@ -8,10 +8,18 @@ import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
import { HashRouter } from 'react-router-dom';
import { NotReady } from './Components/Cockpit/NotReady';
import { Router } from './Router';
import { onPremStore as store } from './store';
import { useGetComposerSocketStatus } from './Utilities/useComposerStatus';
const Application = () => {
const { enabled, started } = useGetComposerSocketStatus();
if (!started || !enabled) {
return <NotReady enabled={enabled} />;
}
return (
<React.Fragment>
<NotificationsPortal />