-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #505 from weaveworks/499-empty
Show message if topology is empty
- Loading branch information
Showing
6 changed files
with
100 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const React = require('react'); | ||
|
||
const NodesError = React.createClass({ | ||
|
||
render: function() { | ||
let classNames = 'nodes-chart-error'; | ||
if (this.props.hidden) { | ||
classNames += ' hide'; | ||
} | ||
let iconClassName = 'fa ' + this.props.faIconClass; | ||
|
||
return ( | ||
<div className={classNames}> | ||
<div className="nodes-chart-error-icon"> | ||
<span className={iconClassName} /> | ||
</div> | ||
{this.props.children} | ||
</div> | ||
); | ||
} | ||
|
||
}); | ||
|
||
module.exports = NodesError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters