Add Active Source to Host Table

pull/10616/head
Tim Raymond 2016-09-30 11:47:28 -07:00
parent f9600d7f20
commit 4225e6a0e2
2 changed files with 13 additions and 1 deletions

View File

@ -10,6 +10,7 @@ const HostsTable = React.createClass({
})),
source: PropTypes.shape({
id: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
}).isRequired,
},
@ -55,7 +56,12 @@ const HostsTable = React.createClass({
return (
<div>
<div className="host-table-header">
<SearchBar onSearch={_.wrap(this.props.hosts, this.filterHosts)} />
<div className="active-source">
Source: {source.name}
</div>
</div>
<table className="table v-center">
<thead>
<tr>

View File

@ -1,3 +1,9 @@
.sortable-header {
cursor: pointer;
}
.host-table-header {
display: flex;
align-items: center;
justify-content: space-between;
}