diff --git a/frontend/packages/console-shared/src/components/dashboard/status-card/AlertItem.tsx b/frontend/packages/console-shared/src/components/dashboard/status-card/AlertItem.tsx index 68de04d392d2..180d0c25e43a 100644 --- a/frontend/packages/console-shared/src/components/dashboard/status-card/AlertItem.tsx +++ b/frontend/packages/console-shared/src/components/dashboard/status-card/AlertItem.tsx @@ -9,7 +9,11 @@ import { alertURL } from '@console/internal/components/monitoring/utils'; import { getAlertActions } from '@console/internal/components/notification-drawer'; import { ExternalLink } from '@console/internal/components/utils'; import { Timestamp } from '@console/internal/components/utils/timestamp'; -import { RedExclamationCircleIcon, YellowExclamationTriangleIcon } from '../../status/icons'; +import { + RedExclamationCircleIcon, + BlueInfoCircleIcon, + YellowExclamationTriangleIcon, +} from '../../status/icons'; import { getAlertSeverity, getAlertMessage, @@ -19,12 +23,24 @@ import { getAlertName, } from './alert-utils'; -const CriticalIcon = () => ; -const WarningIcon = () => ; +const CriticalIcon = () => { + const { t } = useTranslation(); + return ; +}; +const InfoIcon = () => { + const { t } = useTranslation(); + return ; +}; +const WarningIcon = () => { + const { t } = useTranslation(); + return ; +}; const getSeverityIcon = (severity: string) => { switch (severity) { case 'critical': return CriticalIcon; + case 'info': + return InfoIcon; case 'warning': default: return WarningIcon; diff --git a/frontend/public/locales/en/public.json b/frontend/public/locales/en/public.json index 9ff0695de2d6..39163e8306e8 100644 --- a/frontend/public/locales/en/public.json +++ b/frontend/public/locales/en/public.json @@ -1799,6 +1799,8 @@ "{{pluginName}} might have violated the Console Content Security Policy. Refer to the browser's console logs for details.": "{{pluginName}} might have violated the Console Content Security Policy. Refer to the browser's console logs for details.", "prometheusBaseURL not set": "prometheusBaseURL not set", "alertManagerBaseURL not set": "alertManagerBaseURL not set", + "Critical": "Critical", + "Info": "Info", "Loading {{title}} status": "Loading {{title}} status", "Waiting for the build": "Waiting for the build", "graph timespan": "graph timespan",