Skip to content

Commit

Permalink
Model registry settings table icon updates (#3461)
Browse files Browse the repository at this point in the history
  • Loading branch information
manaswinidas authored Nov 11, 2024
1 parent fd2a63c commit 8743ba6
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React from 'react';
import { Label, Popover, Stack, StackItem } from '@patternfly/react-core';
import {
CheckCircleIcon,
DegradedIcon,
ExclamationCircleIcon,
ExclamationTriangleIcon,
InProgressIcon,
Expand Down Expand Up @@ -71,8 +70,8 @@ export const ModelRegistryTableRowStatus: React.FC<ModelRegistryTableRowStatusPr
!popoverMessages.some((message) => message.includes('ContainerCreating'))
) {
statusLabel = ModelRegistryStatusLabel.Unavailable;
icon = <ExclamationCircleIcon />;
color = 'red';
icon = <ExclamationTriangleIcon />;
color = 'gold';
}
// Available
else if (availableCondition?.status === ConditionStatus.True) {
Expand All @@ -83,14 +82,14 @@ export const ModelRegistryTableRowStatus: React.FC<ModelRegistryTableRowStatusPr
// Progressing
else if (progressCondition?.status === ConditionStatus.True) {
statusLabel = ModelRegistryStatusLabel.Progressing;
icon = <InProgressIcon />;
icon = <InProgressIcon className="odh-u-spin" />;
color = 'blue';
}
// Degrading
else if (degradedCondition?.status === ConditionStatus.True) {
statusLabel = ModelRegistryStatusLabel.Degrading;
icon = <DegradedIcon />;
color = 'gold';
icon = <InProgressIcon className="odh-u-spin" />;
color = 'grey';
popoverTitle = 'Service is degrading';
}
}
Expand Down

0 comments on commit 8743ba6

Please sign in to comment.