Skip to content

Commit

Permalink
fix workload charts for langs
Browse files Browse the repository at this point in the history
  • Loading branch information
HanNguyen-dev committed May 21, 2024
1 parent 5d6805d commit 4934250
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/web/src/common/components/workloadstatus/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ export class WorkloadStatusComponent {
size = [350, 250];

getCustomColor(label: string): string {
if (label.includes($localize`Running`)) {
if (label.includes($localize`Running: ${''}`)) {
return '#00c752';
} else if (label.includes($localize`Succeeded`)) {
} else if (label.includes($localize`Succeeded: ${''}`)) {
return '#006028';
} else if (label.includes($localize`Pending`)) {
} else if (label.includes($localize`Pending: ${''}`)) {
return '#ffad20';
} else if (label.includes($localize`Failed`)) {
} else if (label.includes($localize`Failed: ${''}`)) {
return '#f00';
}
return '';
Expand Down

0 comments on commit 4934250

Please sign in to comment.