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

feat:release templates strategy interaction improvements (#8992)

This commit is contained in:
David Leek 2024-12-17 14:41:53 +01:00 committed by GitHub
parent c8300fed00
commit 45035102f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View File

@ -34,6 +34,7 @@ const StyledName = styled(StringTruncator)(({ theme }) => ({
const StyledCard = styled('div')(({ theme }) => ({
display: 'grid',
cursor: 'pointer',
gridTemplateColumns: '3rem 1fr',
width: '20rem',
padding: theme.spacing(2),

View File

@ -41,7 +41,6 @@ export const MilestoneStrategySegmentList = ({
const lastSegmentIndex = segments.length - 1;
if (segments.length === 0) {
console.log('segments.length === 0');
return null;
}

View File

@ -195,6 +195,7 @@ export const TemplateForm: React.FC<ITemplateFormProps> = ({
<SidebarModal
label='Add strategy to template milestone'
onClose={() => {
setAddUpdateStrategyOpen(false);
setStrategyModeEdit(false);
}}
open={addUpdateStrategyOpen}
@ -205,6 +206,7 @@ export const TemplateForm: React.FC<ITemplateFormProps> = ({
onAddUpdateStrategy={addUpdateStrategy}
onCancel={() => {
setAddUpdateStrategyOpen(false);
setStrategyModeEdit(false);
}}
editMode={strategyModeEdit}
/>