fix: The issue badge looks like it's disabled now (cluster-menu's icon badge)

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-08-03 17:17:27 +03:00
1 parent a6a4372320
commit 0b0e4f25b3
2 files changed
+4 -2

No files matched your search

@@ -27,5 +27,7 @@
bottom: 0;
margin: -$padding * 1.5;
font-size: $font-size-small;
background: $colorError;
color: white;
}
}
@@ -46,8 +46,8 @@ export class ClusterIcon extends React.Component<Props> {
{showTooltip && (
<Tooltip targetId={clusterIconId}>{clusterName}</Tooltip>
)}
{icon && <img src={icon} alt={clusterName} />}
{!icon && <Hashicon value={clusterName} options={options} />}
{icon && <img src={icon} alt={clusterName}/>}
{!icon && <Hashicon value={clusterName} options={options}/>}
{showErrors && isAdmin && eventCount > 0 && (
<Badge
className={cssNames("events-count", errorClass)}