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 }) => ({
|
const StyledCard = styled('div')(({ theme }) => ({
|
||||||
display: 'grid',
|
display: 'grid',
|
||||||
|
cursor: 'pointer',
|
||||||
gridTemplateColumns: '3rem 1fr',
|
gridTemplateColumns: '3rem 1fr',
|
||||||
width: '20rem',
|
width: '20rem',
|
||||||
padding: theme.spacing(2),
|
padding: theme.spacing(2),
|
||||||
|
@ -41,7 +41,6 @@ export const MilestoneStrategySegmentList = ({
|
|||||||
const lastSegmentIndex = segments.length - 1;
|
const lastSegmentIndex = segments.length - 1;
|
||||||
|
|
||||||
if (segments.length === 0) {
|
if (segments.length === 0) {
|
||||||
console.log('segments.length === 0');
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,6 +195,7 @@ export const TemplateForm: React.FC<ITemplateFormProps> = ({
|
|||||||
<SidebarModal
|
<SidebarModal
|
||||||
label='Add strategy to template milestone'
|
label='Add strategy to template milestone'
|
||||||
onClose={() => {
|
onClose={() => {
|
||||||
|
setAddUpdateStrategyOpen(false);
|
||||||
setStrategyModeEdit(false);
|
setStrategyModeEdit(false);
|
||||||
}}
|
}}
|
||||||
open={addUpdateStrategyOpen}
|
open={addUpdateStrategyOpen}
|
||||||
@ -205,6 +206,7 @@ export const TemplateForm: React.FC<ITemplateFormProps> = ({
|
|||||||
onAddUpdateStrategy={addUpdateStrategy}
|
onAddUpdateStrategy={addUpdateStrategy}
|
||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
setAddUpdateStrategyOpen(false);
|
setAddUpdateStrategyOpen(false);
|
||||||
|
setStrategyModeEdit(false);
|
||||||
}}
|
}}
|
||||||
editMode={strategyModeEdit}
|
editMode={strategyModeEdit}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user