1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-22 01:16:07 +02:00

feat: remove add values for legal values (#9767)

This removes the add values nicely.


![image](https://github.com/user-attachments/assets/8fb84b51-c842-4a56-af21-ff5b66772538)
This commit is contained in:
Jaanus Sellin 2025-04-16 11:06:46 +03:00 committed by GitHub
parent c1bb905146
commit e9c50a551f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -379,10 +379,12 @@ export const EditableConstraint: FC<Props> = ({
</StyledButton> </StyledButton>
) : null} ) : null}
</ConstraintDetails> </ConstraintDetails>
<ValueList {!input.includes('LEGAL_VALUES') && (
values={localConstraint.values} <ValueList
removeValue={removeValue} values={localConstraint.values}
/> removeValue={removeValue}
/>
)}
<HtmlTooltip title='Delete constraint' arrow> <HtmlTooltip title='Delete constraint' arrow>
<IconButton type='button' size='small' onClick={onDelete}> <IconButton type='button' size='small' onClick={onDelete}>