mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Provide danger-highlighted combo box items in add/edit view for configured locations that are no longer on the manifest. (#140223)
This commit is contained in:
parent
40b1a67ae5
commit
0fbe9e9837
1 changed files with 4 additions and 1 deletions
|
@ -390,11 +390,14 @@ export const FIELD: Record<string, FieldMeta> = {
|
|||
options: Object.values(locations).map((location) => ({
|
||||
label: locations?.find((loc) => location.id === loc.id)?.label,
|
||||
id: location.id,
|
||||
key: location.id,
|
||||
isServiceManaged: location.isServiceManaged,
|
||||
})),
|
||||
selectedOptions: Object.values(field?.value as ServiceLocations).map((location) => ({
|
||||
label: locations?.find((loc) => location.id === loc.id)?.label,
|
||||
color: locations.some((s) => s.id === location.id) ? 'default' : 'danger',
|
||||
label: locations?.find((loc) => location.id === loc.id)?.label ?? location.id,
|
||||
id: location.id,
|
||||
key: location.id,
|
||||
isServiceManaged: location.isServiceManaged,
|
||||
})),
|
||||
'data-test-subj': 'syntheticsMonitorConfigLocations',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue