mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Enterprise Search][Search Application] Add warning icon next to Configuration button when schema conflict (#158636)
## Summary
Add warning icon next to configuration button when there is a schema conflict
### Screen Recording
38375c3b
-7e2b-42f5-ba3c-e3ca1b1cc193
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
f630d90697
commit
a21ddd02b4
1 changed files with 16 additions and 13 deletions
|
@ -136,19 +136,22 @@ const ConfigurationPopover: React.FC<ConfigurationPopOverProps> = ({
|
|||
panelPaddingSize="none"
|
||||
closePopover={setCloseConfiguration}
|
||||
button={
|
||||
<EuiButtonEmpty
|
||||
color="primary"
|
||||
iconType="arrowDown"
|
||||
iconSide="right"
|
||||
onClick={setCloseConfiguration}
|
||||
>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.content.engine.searchPreview.configuration.buttonTitle',
|
||||
{
|
||||
defaultMessage: 'Configuration',
|
||||
}
|
||||
)}
|
||||
</EuiButtonEmpty>
|
||||
<EuiFlexGroup alignItems="center" gutterSize="xs">
|
||||
{hasSchemaConflicts && <EuiIcon type="alert" color="danger" />}
|
||||
<EuiButtonEmpty
|
||||
color="primary"
|
||||
iconType="arrowDown"
|
||||
iconSide="right"
|
||||
onClick={setCloseConfiguration}
|
||||
>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.content.engine.searchPreview.configuration.buttonTitle',
|
||||
{
|
||||
defaultMessage: 'Configuration',
|
||||
}
|
||||
)}
|
||||
</EuiButtonEmpty>
|
||||
</EuiFlexGroup>
|
||||
}
|
||||
>
|
||||
<EuiContextMenuPanel style={{ width: 300 }}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue