@@ -375,6 +375,12 @@
|
||||
@extend .xo-status-busy;
|
||||
}
|
||||
|
||||
&-disabled {
|
||||
@extend .fa;
|
||||
@extend .fa-circle;
|
||||
@extend .xo-status-busy;
|
||||
}
|
||||
|
||||
&-all-connected {
|
||||
@extend .fa;
|
||||
@extend .fa-circle;
|
||||
@@ -441,6 +447,11 @@
|
||||
@extend .fa-server;
|
||||
@extend .text-danger;
|
||||
}
|
||||
&-disabled {
|
||||
@extend .fa;
|
||||
@extend .fa-server;
|
||||
@extend .text-warning;
|
||||
}
|
||||
&-working {
|
||||
@extend .fa;
|
||||
@extend .fa-circle;
|
||||
|
||||
@@ -106,6 +106,7 @@ export default class HostItem extends Component {
|
||||
|
||||
render () {
|
||||
const { item: host, container, expandAll, selected, nVms } = this.props
|
||||
const toolTipContent = host.power_state === `Running` && !host.enabled ? `disabled` : _(`powerState${host.power_state}`)
|
||||
return <div className={styles.item}>
|
||||
<BlockLink to={`/hosts/${host.id}`}>
|
||||
<SingleLineRow>
|
||||
@@ -115,13 +116,15 @@ export default class HostItem extends Component {
|
||||
|
||||
<Tooltip
|
||||
content={isEmpty(host.current_operations)
|
||||
? _(`powerState${host.power_state}`)
|
||||
: <div>{_(`powerState${host.power_state}`)}{' ('}{map(host.current_operations)[0]}{')'}</div>
|
||||
? toolTipContent
|
||||
: <div>{toolTipContent}{' ('}{map(host.current_operations)[0]}{')'}</div>
|
||||
}
|
||||
>
|
||||
{isEmpty(host.current_operations)
|
||||
? <Icon icon={`${host.power_state.toLowerCase()}`} />
|
||||
: <Icon icon='busy' />
|
||||
{!isEmpty(host.current_operations)
|
||||
? <Icon icon='busy' />
|
||||
: (host.power_state === 'Running' && !host.enabled)
|
||||
? <Icon icon='disabled' />
|
||||
: <Icon icon={`${host.power_state.toLowerCase()}`} />
|
||||
}
|
||||
</Tooltip>
|
||||
|
||||
|
||||
@@ -235,7 +235,7 @@ export default class Host extends Component {
|
||||
<Row>
|
||||
<Col mediumSize={6} className='header-title'>
|
||||
<h2>
|
||||
<Icon icon={`host-${host.power_state.toLowerCase()}`} />
|
||||
<Icon icon={host.power_state === 'Running' && !host.enabled ? 'host-disabled' : `host-${host.power_state.toLowerCase()}`} />
|
||||
{' '}
|
||||
<Text
|
||||
value={host.name_label}
|
||||
|
||||
Reference in New Issue
Block a user