Blueprints Table: Hide Create image button

This button is used to launch the wizard in the old images table, it
should not be used in the blueprints table (as the Create blueprint
button has been moved to the header).
This commit is contained in:
lucasgarfield 2024-03-06 09:37:20 +01:00 committed by Lucas Garfield
parent ab31c7a54a
commit 68e4cba9a3

View file

@ -180,15 +180,17 @@ const ImagesTable = ({
/>
<Toolbar>
<ToolbarContent>
<ToolbarItem>
<Link
to={resolveRelPath('imagewizard')}
className="pf-c-button pf-m-primary"
data-testid="create-image-action"
>
Create image
</Link>
</ToolbarItem>
{!experimentalFlag && (
<ToolbarItem>
<Link
to={resolveRelPath('imagewizard')}
className="pf-c-button pf-m-primary"
data-testid="create-image-action"
>
Create image
</Link>
</ToolbarItem>
)}
{experimentalFlag && (
<>
<ToolbarItem>