Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: workload charts are black for certain languages #9067

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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