mirror of
https://github.com/alice-lg/alice-lg.git
synced 2024-05-11 05:55:03 +00:00
62 lines
1.5 KiB
JavaScript
62 lines
1.5 KiB
JavaScript
|
|
import React from 'react'
|
|
import {connect} from 'react-redux'
|
|
|
|
import PageHeader from 'components/page-header'
|
|
import Details from './details'
|
|
import Status from './status'
|
|
|
|
import SearchInput from 'components/search-input'
|
|
|
|
import Protocols from './protocols'
|
|
|
|
import {setProtocolsFilterValue} from './actions'
|
|
|
|
class RouteserversPage extends React.Component {
|
|
|
|
setFilter(value) {
|
|
this.props.dispatch(
|
|
setProtocolsFilterValue(value)
|
|
);
|
|
}
|
|
|
|
render() {
|
|
return(
|
|
<div className="routeservers-page">
|
|
<PageHeader>
|
|
<Details routeserverId={this.props.params.routeserverId} />
|
|
</PageHeader>
|
|
|
|
<div className="row details-main">
|
|
<div className="col-lg-9 col-xs-12 col-md-8">
|
|
<div className="card">
|
|
<SearchInput
|
|
value={this.props.protocolsFilterValue}
|
|
placeholder="Filter by Neighbour, ASN or Description"
|
|
onChange={(e) => this.setFilter(e.target.value)}
|
|
/>
|
|
</div>
|
|
|
|
<Protocols protocol="bgp" routeserverId={this.props.params.routeserverId} />
|
|
</div>
|
|
<div className="col-lg-3 col-md-4 col-xs-12">
|
|
<div className="card">
|
|
<Status routeserverId={this.props.params.routeserverId} />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default connect(
|
|
(state) => {
|
|
return {
|
|
protocolsFilterValue: state.routeservers.protocolsFilterValue
|
|
};
|
|
}
|
|
)(RouteserversPage);
|
|
|
|
|