-
Notifications
You must be signed in to change notification settings - Fork 30
Conversation
Pull Request Test Coverage Report for Build 1691
💛 - Coveralls |
<div>This host is under maintenance.</div> | ||
{maintenanceReason && ( | ||
<React.Fragment> | ||
<br /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to use CSS for this?
<div>{maintenanceReason}</div> | ||
</React.Fragment> | ||
)} | ||
<br /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
likewise
const overlay = ( | ||
<Popover id={`${getName(node)}-status-popover`} title="Stopping maintenance"> | ||
<div>This host is leaving maintenance. It will rejoin the cluster and resume accepting workloads.</div> | ||
<br /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
css?
/> | ||
); | ||
default: | ||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be null
returned here?
src/components/VmStatus/VmStatus.js
Outdated
@@ -21,62 +20,39 @@ import { | |||
getVmStatus, | |||
} from '../../utils/status/vm'; | |||
import { getId, getVmImporterPods } from '../../selectors'; | |||
import { Status, LinkStatus } from '../Status/Status'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just ../Status
is enough, let's make use the flexibility given by of the webpack's resolver.
@mareklibra fixed all, see new commit. |
Status component is reused for Vm status, Node status and BareMetalHost status