mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 10:11:03 +00:00
Loading details header now has node color
This commit is contained in:
@@ -21,15 +21,23 @@ const NodeDetails = React.createClass({
|
||||
},
|
||||
|
||||
renderLoading: function() {
|
||||
const node = this.props.nodes.get(this.props.nodeId);
|
||||
const nodeColor = this.getNodeColorDark(node.get('rank'), node.get('label_major'));
|
||||
const styles = {
|
||||
header: {
|
||||
'backgroundColor': nodeColor
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="node-details">
|
||||
<div className="node-details-header node-details-header-loading">
|
||||
<div className="node-details-header" style={styles.header}>
|
||||
<div className="node-details-header-wrapper">
|
||||
<h2 className="node-details-header-label">
|
||||
Loading...
|
||||
<h2 className="node-details-header-label truncate">
|
||||
{node.get('label_major')}
|
||||
</h2>
|
||||
<div className="node-details-header-label-minor truncate">
|
||||
{this.props.nodeId}
|
||||
{node.get('label_minor')}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -390,10 +390,6 @@ h2 {
|
||||
background-color: @background-dark-color;
|
||||
}
|
||||
|
||||
&-loading {
|
||||
background-color: @background-medium-color;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&-controls {
|
||||
|
||||
Reference in New Issue
Block a user