Components/Cockpit: NotReady

Add a secondary button that takes the user to the `osbuild-composer.socket`
services file inside the cockpit services plugin.
This commit is contained in:
Gianluca Zuccarelli 2025-02-04 15:50:18 +00:00 committed by Sanne Raymaekers
parent a27c300431
commit b469775ef5

View file

@ -41,6 +41,20 @@ export const NotReady = ({ enabled }: { enabled: boolean }) => {
Start socket
</Button>
</EmptyStateActions>
<EmptyStateActions>
<Button
variant="link"
onClick={(event) => {
event.preventDefault();
cockpit.jump(
'/system/services#/osbuild-composer.socket',
cockpit.transport.host
);
}}
>
More Info
</Button>
</EmptyStateActions>
</EmptyStateFooter>
</EmptyState>
);