mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
Remove github.com/2opremio/go-1/codec
* Bump github.com/ugorji/go/codec, to get fixes which make github.com/2opremio/go-1/codec unnecessary * Remove github.com/2opremio/go-1/codec * Remove type embeddings to avoid the problem explained at https://github.com/ugorji/go/issues/141#issuecomment-185450157
This commit is contained in:
@@ -9,12 +9,12 @@ export default class NodeDetailsControlButton extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
let className = `node-control-button fa ${this.props.control.icon}`;
|
||||
let className = `node-control-button fa ${this.props.control.control.icon}`;
|
||||
if (this.props.pending) {
|
||||
className += ' node-control-button-pending';
|
||||
}
|
||||
return (
|
||||
<span className={className} title={this.props.control.human} onClick={this.handleClick} />
|
||||
<span className={className} title={this.props.control.control.human} onClick={this.handleClick} />
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ export default class NodeDetailsControls extends React.Component {
|
||||
{this.props.controls && this.props.controls.map(control => {
|
||||
return (
|
||||
<NodeDetailsControlButton nodeId={this.props.nodeId} control={control}
|
||||
pending={this.props.pending} key={control.id} />
|
||||
pending={this.props.pending} key={control.control.id} />
|
||||
);
|
||||
})}
|
||||
</span>
|
||||
|
||||
@@ -10,8 +10,8 @@ class NodeDetailsHealthItem extends React.Component {
|
||||
<div className="node-details-health-item">
|
||||
<div className="node-details-health-item-value">{formatMetric(this.props.value, this.props)}</div>
|
||||
<div className="node-details-health-item-sparkline">
|
||||
<Sparkline data={this.props.samples} max={this.props.max}
|
||||
first={this.props.first} last={this.props.last} />
|
||||
<Sparkline data={this.props.wire_metrics.samples} max={this.props.wire_metrics.max}
|
||||
first={this.props.wire_metrics.first} last={this.props.wire_metrics.last} />
|
||||
</div>
|
||||
<div className="node-details-health-item-label">{this.props.label}</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user