Wizard: hide some review items for cockpit frontend
Hide some of the steps in the review step that aren't applicable to the cockpit frontend.
This commit is contained in:
parent
122c481c09
commit
11e352440f
3 changed files with 101 additions and 84 deletions
|
|
@ -121,6 +121,7 @@ test.describe.serial('test', () => {
|
|||
await frame.getByRole('button', { name: 'Review and finish' }).click();
|
||||
await frame.getByRole('button', { name: 'About packages' }).click();
|
||||
frame.getByRole('gridcell', { name: 'osbuild-composer' });
|
||||
await frame.getByRole('button', { name: 'Close', exact: true }).click();
|
||||
await frame
|
||||
.getByRole('button', { name: 'Save changes to blueprint' })
|
||||
.click();
|
||||
|
|
@ -128,6 +129,7 @@ test.describe.serial('test', () => {
|
|||
await frame.getByRole('button', { name: 'Edit blueprint' }).click();
|
||||
await frame.getByRole('button', { name: 'About packages' }).click();
|
||||
frame.getByRole('gridcell', { name: 'osbuild-composer' });
|
||||
await frame.getByRole('button', { name: 'Close', exact: true }).click();
|
||||
await frame.getByRole('button', { name: 'Cancel', exact: true }).click();
|
||||
frame.getByRole('heading', { name: 'All images' });
|
||||
});
|
||||
|
|
|
|||
|
|
@ -499,6 +499,7 @@ const Review = () => {
|
|||
<ServicesList />
|
||||
</ExpandableSection>
|
||||
)}
|
||||
{!process.env.IS_ON_PREMISE && (
|
||||
<ExpandableSection
|
||||
toggleContent={composeExpandable(
|
||||
'First boot',
|
||||
|
|
@ -514,6 +515,7 @@ const Review = () => {
|
|||
>
|
||||
<FirstBootList />
|
||||
</ExpandableSection>
|
||||
)}
|
||||
{(blueprintName || blueprintDescription) && (
|
||||
<ExpandableSection
|
||||
toggleContent={composeExpandable(
|
||||
|
|
|
|||
|
|
@ -506,6 +506,7 @@ export const ContentList = () => {
|
|||
<>
|
||||
<Content>
|
||||
<Content component={ContentVariants.dl} className='review-step-dl'>
|
||||
{!process.env.IS_ON_PREMISE && (
|
||||
<>
|
||||
<Content
|
||||
component={ContentVariants.dt}
|
||||
|
|
@ -541,7 +542,10 @@ export const ContentList = () => {
|
|||
{snapshottingText}
|
||||
</Button>
|
||||
</Popover>
|
||||
{!useLatest && !isLoading && isSuccess && hasSnapshotDateAfter ? (
|
||||
{!useLatest &&
|
||||
!isLoading &&
|
||||
isSuccess &&
|
||||
hasSnapshotDateAfter ? (
|
||||
<Alert
|
||||
variant='warning'
|
||||
isInline
|
||||
|
|
@ -553,11 +557,18 @@ export const ContentList = () => {
|
|||
)}
|
||||
</Content>
|
||||
</>
|
||||
<Content component={ContentVariants.dt} className='pf-v6-u-min-width'>
|
||||
)}
|
||||
{!process.env.IS_ON_PREMISE && (
|
||||
<>
|
||||
<Content
|
||||
component={ContentVariants.dt}
|
||||
className='pf-v6-u-min-width'
|
||||
>
|
||||
Custom repositories
|
||||
</Content>
|
||||
<Content component={ContentVariants.dd}>
|
||||
{customRepositories.length + recommendedRepositories.length > 0 ? (
|
||||
{customRepositories.length + recommendedRepositories.length >
|
||||
0 ? (
|
||||
<Popover
|
||||
position='bottom'
|
||||
headerContent='Custom repositories'
|
||||
|
|
@ -570,14 +581,16 @@ export const ContentList = () => {
|
|||
aria-label='About custom repositories'
|
||||
className='popover-button pf-v6-u-p-0'
|
||||
>
|
||||
{customRepositories.length + recommendedRepositories.length ||
|
||||
0}
|
||||
{customRepositories.length +
|
||||
recommendedRepositories.length || 0}
|
||||
</Button>
|
||||
</Popover>
|
||||
) : (
|
||||
0
|
||||
)}
|
||||
</Content>
|
||||
</>
|
||||
)}
|
||||
<Content component={ContentVariants.dt} className='pf-v6-u-min-width'>
|
||||
Additional packages
|
||||
</Content>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue