Skip to content

Commit

Permalink
fix anomalies table and use same icon in transform messages
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed Jul 18, 2024
1 parent 8b530d3 commit 3185e6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { EuiSpacer, EuiInMemoryTable, EuiButtonIcon, EuiToolTip } from '@elastic

import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n-react';
import { euiLightVars as theme } from '@kbn/ui-theme';
import { timeFormatter } from '@kbn/ml-date-utils';

import type { JobMessage } from '../../../../common/types/audit_message';
Expand Down Expand Up @@ -66,7 +65,7 @@ export const JobMessages: FC<JobMessagesProps> = ({
''
),
render: (message: JobMessage) => <JobIcon message={message} />,
width: `${theme.euiSizeL}`,
width: '6%',
},
{
field: 'timestamp',
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/transform/public/app/components/job_icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ export const JobIcon: FC<Props> = ({ message, showTooltip = false }) => {
}

let color = 'primary';
const icon = 'warning';
let icon = 'warning';

if (message.level === INFO) {
color = 'primary';
icon = 'iInCircle';
} else if (message.level === WARNING) {
color = 'warning';
} else if (message.level === ERROR) {
Expand Down

0 comments on commit 3185e6c

Please sign in to comment.