import {debounce} from 'underscore' import React from 'react' import {connect} from 'react-redux' import {replace} from 'react-router-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 QuickLinks from './protocols/quick-links' import {setFilterValue} from './protocols/actions' import {makeQueryLinkProps} from './protocols/routing' class RouteserversPage extends React.Component { constructor(props) { super(props); this.dispatchDebounced = debounce(this.props.dispatch, 350); } setFilter(value) { // Set filter value (for input rendering) this.props.dispatch(setFilterValue(value)); // Update location delayed this.dispatchDebounced(replace( makeQueryLinkProps( this.props.routing, value, this.props.sortColumn, this.props.sortOrder))); } render() { return(