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:
parent
c8300fed00
commit
45035102f4
@ -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),
|
||||
|
@ -41,7 +41,6 @@ export const MilestoneStrategySegmentList = ({
|
||||
const lastSegmentIndex = segments.length - 1;
|
||||
|
||||
if (segments.length === 0) {
|
||||
console.log('segments.length === 0');
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -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}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user