Skip to content

Commit

Permalink
fix(plugins/plugin-client-common): status badge for Succeeeded shows …
Browse files Browse the repository at this point in the history
…up yellow

should be blue i guess
  • Loading branch information
starpit committed Sep 4, 2022
1 parent 0dbbc3e commit 226ce0d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,14 @@ function oneTimeRender(badgeText: KuiBadge) {
badge.classList.add('badge-as-fontawesome')
badge.appendChild(awesome) */
} else {
const type = className === 'green-background' ? 'ok' : className === 'red-background' ? 'error' : 'warning'
const type =
className === 'green-background'
? 'ok'
: className === 'red-background'
? 'error'
: className === 'blue-background'
? 'done'
: 'warning'

return (
<div className={className || 'gray-background'} onClick={badgeText.onclick}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export default function PatternFlyTag(props: Props) {
const color =
props.type === 'ok'
? 'green-background'
: props.type === 'done'
? 'blue-background'
: props.type === 'error'
? 'red-background'
: props.type === 'warning'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { ReactNode } from 'react'
interface Props {
id?: string
title?: string
type?: 'ok' | 'error' | 'warning'
type?: 'ok' | 'error' | 'warning' | 'done'
className?: string
spanclassname?: string
children: ReactNode
Expand Down

0 comments on commit 226ce0d

Please sign in to comment.