mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
* Create IpRangeType and IpRanges controls * Add validation * Refactoring * Add behavior when discarding changes * Refactoring: create common input list * Remove old template * Move add btn to input_list, add placeholder * Remove unused directives * Remove unused translations * Refactoring * Use EuiButtonGroup instead of toggle button * Update options ids, add aria-labels * Make inputs compressed * Remove unused translations
This commit is contained in:
parent
8358fe20ea
commit
900f48cc5f
2 changed files with 3 additions and 0 deletions
|
@ -86,6 +86,7 @@ function FromToList({ showValidation, onBlur, ...rest }: FromToListProps) {
|
|||
defaultMessage: 'IP range from: {value}',
|
||||
values: { value: item.from.value || '*' },
|
||||
})}
|
||||
compressed
|
||||
isInvalid={showValidation ? item.from.isInvalid : false}
|
||||
placeholder="*"
|
||||
onChange={ev => {
|
||||
|
@ -104,6 +105,7 @@ function FromToList({ showValidation, onBlur, ...rest }: FromToListProps) {
|
|||
defaultMessage: 'IP range to: {value}',
|
||||
values: { value: item.to.value || '*' },
|
||||
})}
|
||||
compressed
|
||||
isInvalid={showValidation ? item.to.isInvalid : false}
|
||||
placeholder="*"
|
||||
onChange={ev => {
|
||||
|
|
|
@ -80,6 +80,7 @@ function MaskList({ showValidation, onBlur, ...rest }: MaskListProps) {
|
|||
defaultMessage: 'CIDR mask: {mask}',
|
||||
values: { mask: mask.value || '*' },
|
||||
})}
|
||||
compressed
|
||||
isInvalid={showValidation ? mask.isInvalid : false}
|
||||
placeholder="*"
|
||||
onChange={ev => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue