Skip to content

Commit

Permalink
NCL-7216 Remove ServiceContainerCreatingUpdating from Changes Summary…
Browse files Browse the repository at this point in the history
… section
  • Loading branch information
patrikk0123 committed Oct 4, 2023
1 parent 1fe6be8 commit 8cc3290
Showing 1 changed file with 24 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { PageLayout } from 'components/PageLayout/PageLayout';
import { BuildConfigsAddList } from 'components/ProductVersionBuildConfigsEditPage/BuildConfigsAddList';
import { BuildConfigsChangesList } from 'components/ProductVersionBuildConfigsEditPage/BuildConfigsChangesList';
import { BuildConfigsRemoveList } from 'components/ProductVersionBuildConfigsEditPage/BuildConfigsRemoveList';
import { ServiceContainerCreatingUpdating } from 'components/ServiceContainers/ServiceContainerCreatingUpdating';
import { Toolbar } from 'components/Toolbar/Toolbar';
import { ToolbarItem } from 'components/Toolbar/ToolbarItem';

Expand Down Expand Up @@ -190,32 +189,30 @@ export const ProductVersionBuildConfigsEditPage = ({
</GridItem>

<GridItem span={12}>
<ServiceContainerCreatingUpdating {...serviceContainerProductVersionPatch}>
<Toolbar>
<ToolbarItem>
<TextContent>
<Text component={TextVariants.h2}>Changes Summary</Text>
</TextContent>
</ToolbarItem>
<ToolbarItem>
<Button
variant="tertiary"
onClick={() => {
toggleCancelAllModal();
}}
isDisabled={!buildConfigChanges.length}
>
Cancel all
</Button>
</ToolbarItem>
</Toolbar>
<BuildConfigsChangesList
buildConfigChanges={buildConfigChanges}
onCancel={(buildConfig: BuildConfiguration) => {
cancelBuildConfigChange(buildConfig);
}}
/>
</ServiceContainerCreatingUpdating>
<Toolbar>
<ToolbarItem>
<TextContent>
<Text component={TextVariants.h2}>Changes Summary</Text>
</TextContent>
</ToolbarItem>
<ToolbarItem>
<Button
variant="tertiary"
onClick={() => {
toggleCancelAllModal();
}}
isDisabled={!buildConfigChanges.length}
>
Cancel all
</Button>
</ToolbarItem>
</Toolbar>
<BuildConfigsChangesList
buildConfigChanges={buildConfigChanges}
onCancel={(buildConfig: BuildConfiguration) => {
cancelBuildConfigChange(buildConfig);
}}
/>
</GridItem>
</Grid>

Expand Down

0 comments on commit 8cc3290

Please sign in to comment.