mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
remove not deployed from inference pipeline card (#141091)
This commit is contained in:
parent
063f50dc7e
commit
19097ddae9
2 changed files with 5 additions and 16 deletions
|
@ -38,10 +38,4 @@ describe('InfererencePipelineCard', () => {
|
|||
const health = wrapper.find(EuiHealth);
|
||||
expect(health.prop('children')).toEqual('Deployed');
|
||||
});
|
||||
|
||||
it('renders an undeployed item', () => {
|
||||
const wrapper = shallow(<InferencePipelineCard {...mockValues} isDeployed={false} />);
|
||||
const health = wrapper.find(EuiHealth);
|
||||
expect(health.prop('children')).toEqual('Not deployed');
|
||||
});
|
||||
});
|
||||
|
|
|
@ -49,11 +49,6 @@ export const InferencePipelineCard: React.FC<InferencePipeline> = ({
|
|||
defaultMessage: 'Deployed',
|
||||
});
|
||||
|
||||
const notDeployedText = i18n.translate(
|
||||
'xpack.enterpriseSearch.inferencePipelineCard.isNotDeployed',
|
||||
{ defaultMessage: 'Not deployed' }
|
||||
);
|
||||
|
||||
const actionButton = (
|
||||
<EuiButtonEmpty
|
||||
iconSide="right"
|
||||
|
@ -135,11 +130,11 @@ export const InferencePipelineCard: React.FC<InferencePipeline> = ({
|
|||
</EuiFlexItem>
|
||||
<EuiFlexItem>
|
||||
<EuiFlexGroup gutterSize="m" justifyContent="flexEnd">
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiHealth color={isDeployed ? 'success' : 'accent'}>
|
||||
{isDeployed ? deployedText : notDeployedText}
|
||||
</EuiHealth>
|
||||
</EuiFlexItem>
|
||||
{isDeployed && (
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiHealth color="success">{deployedText}</EuiHealth>
|
||||
</EuiFlexItem>
|
||||
)}
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiFlexGroup gutterSize="xs">
|
||||
<EuiFlexItem>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue