1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

feat: deleting strategy variants indicator (#8840)

This commit is contained in:
Mateusz Kwasniewski 2024-11-25 10:46:35 +01:00 committed by GitHub
parent 79224ef9e5
commit 4f87f1e0b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -236,6 +236,21 @@ export const StrategyChange: VFC<{
</Typography>
}
/>
<ConditionallyRender
condition={Boolean(currentStrategy?.variants?.length)}
show={
currentStrategy?.variants && (
<StyledBox>
<StyledTypography>
Deleting strategy variants:
</StyledTypography>
<EnvironmentVariantsTable
variants={currentStrategy.variants}
/>
</StyledBox>
)
}
/>
</>
)}
{change.action === 'updateStrategy' && (