AppCockpit: render not ready component
Render the nont ready component when the osbuild-composer.socket is not running.
This commit is contained in:
parent
87ce805c74
commit
a27c300431
1 changed files with 8 additions and 0 deletions
|
|
@ -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 />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue