mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
29 lines
555 B
JavaScript
29 lines
555 B
JavaScript
/** @jsx React.DOM */
|
|
|
|
var React = require('react');
|
|
|
|
var Status = React.createClass({
|
|
|
|
renderConnectionState: function() {
|
|
return (
|
|
<div className="status-connection">
|
|
<span className="status-icon fa fa-exclamation-circle" />
|
|
<span className="status-label">Scope is disconnected</span>
|
|
</div>
|
|
);
|
|
},
|
|
|
|
render: function() {
|
|
var isDisconnected = this.props.connectionState === 'disconnected';
|
|
|
|
return (
|
|
<div className="status">
|
|
{isDisconnected && this.renderConnectionState()}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
});
|
|
|
|
module.exports = Status;
|