Skip to content

Commit

Permalink
fix(ui): Sync Health Statuses for Applications and everything else (#…
Browse files Browse the repository at this point in the history
…20020)

Signed-off-by: Josh Soref <jsoref@gmail.com>
  • Loading branch information
jsoref authored Sep 20, 2024
1 parent de06f77 commit 9ac1670
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const Filters = (props: FiltersProps) => {
{ResourceFilter({
label: 'HEALTH STATUS',
prefix: 'health',
options: ['Healthy', 'Progressing', 'Degraded', 'Suspended', 'Missing', 'Unknown'].map(label => ({
options: ['Progressing', 'Suspended', 'Healthy', 'Degraded', 'Missing', 'Unknown'].map(label => ({
label,
count: getOptionCount(label, 'Health'),
icon: <HealthStatusIcon state={{status: label as HealthStatusCode, message: ''}} noSpin={true} />
Expand Down
4 changes: 2 additions & 2 deletions ui/src/app/shared/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,12 @@ export const SyncStatuses: {[key: string]: SyncStatusCode} = {
export type HealthStatusCode = 'Unknown' | 'Progressing' | 'Healthy' | 'Suspended' | 'Degraded' | 'Missing';

export const HealthStatuses: {[key: string]: HealthStatusCode} = {
Unknown: 'Unknown',
Progressing: 'Progressing',
Suspended: 'Suspended',
Healthy: 'Healthy',
Degraded: 'Degraded',
Missing: 'Missing'
Missing: 'Missing',
Unknown: 'Unknown'
};

export interface HealthStatus {
Expand Down

0 comments on commit 9ac1670

Please sign in to comment.