Skip to content

Commit

Permalink
Fix: Update Automate run label colors (#3690)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikehrn authored Dec 13, 2024
1 parent a4c33fb commit bd24ec7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion packages/frontend-2/components/automate/runs/StatusBadge.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<template>
<CommonBadge :color-classes="[runStatusClasses(run), 'shrink-0 grow-0'].join(' ')">
<CommonBadge
:color-classes="
[runStatusClasses(run), 'shrink-0 grow-0 text-foreground'].join(' ')
"
>
{{ run.status.toUpperCase() }}
</CommonBadge>
</template>
Expand Down
8 changes: 4 additions & 4 deletions packages/frontend-2/lib/automate/composables/runs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,19 @@ export const useAutomationRunDetailsFns = () => {
switch (status) {
case AutomateRunStatus.Pending:
case AutomateRunStatus.Initializing:
classParts.push('bg-warning-lighter text-warning-darker')
classParts.push('bg-warning-lighter')
break
case AutomateRunStatus.Running:
classParts.push('bg-info-lighter text-info-darker')
classParts.push('bg-info-lighter')
break
case AutomateRunStatus.Failed:
case AutomateRunStatus.Exception:
case AutomateRunStatus.Canceled:
case AutomateRunStatus.Timeout:
classParts.push('bg-danger-lighter text-danger-darker')
classParts.push('bg-danger-lighter')
break
case AutomateRunStatus.Succeeded:
classParts.push('bg-success-lighter text-success-darker')
classParts.push('bg-success-lighter')
break
}

Expand Down

0 comments on commit bd24ec7

Please sign in to comment.