LandingPage: Hotfix to remove exposed blueprint buttons
Commitbae6435fd9adds scaffolding for the blueprint table. Blueprint features should be hidden behind experimental flags. The new buttons related to creating blueprints and rebuilding images in the header were not hidden behind the experimental flag, this commit fixes that and does so.bae6435fd9also changed the header title from "Image Builder" to "Images". This change has been a long time coming - it is being left in for now. We may want to revisit the copy in the popovers to align it as the term "Image Builder" is still being used in those.
This commit is contained in:
parent
86e75f525b
commit
819863835b
2 changed files with 18 additions and 8 deletions
|
|
@ -18,7 +18,13 @@ import {
|
|||
|
||||
import './ImageBuilderHeader.scss';
|
||||
|
||||
export const ImageBuilderHeader = () => {
|
||||
type ImageBuilderHeaderPropTypes = {
|
||||
experimentalFlag?: string | true | undefined;
|
||||
};
|
||||
|
||||
export const ImageBuilderHeader = ({
|
||||
experimentalFlag,
|
||||
}: ImageBuilderHeaderPropTypes) => {
|
||||
return (
|
||||
<>
|
||||
{/*@ts-ignore*/}
|
||||
|
|
@ -82,12 +88,16 @@ export const ImageBuilderHeader = () => {
|
|||
</Popover>
|
||||
<OpenSourceBadge repositoriesURL="https://www.osbuild.org/guides/image-builder-service/architecture.html" />
|
||||
</FlexItem>
|
||||
<FlexItem align={{ default: 'alignRight' }}>
|
||||
<Button>New blueprint</Button>
|
||||
</FlexItem>
|
||||
<FlexItem>
|
||||
<Button isDisabled>Build images</Button>
|
||||
</FlexItem>
|
||||
{experimentalFlag && (
|
||||
<>
|
||||
<FlexItem align={{ default: 'alignRight' }}>
|
||||
<Button>New blueprint</Button>
|
||||
</FlexItem>
|
||||
<FlexItem>
|
||||
<Button isDisabled>Build images</Button>
|
||||
</FlexItem>{' '}
|
||||
</>
|
||||
)}
|
||||
</Flex>
|
||||
</PageHeader>
|
||||
</>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue