web interface -- Make refresh buttons reload all data, not just counters

This commit is contained in:
Eugene Bujak 2018-09-07 18:04:31 +03:00
parent 4ba8293c06
commit 3189341089
1 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,8 @@ class Dashboard extends Component {
dashboard.processingTopStats; dashboard.processingTopStats;
const disableButton = <button type="button" className="btn btn-outline-secondary btn-sm mr-2" onClick={() => this.props.disableDns()}>Disable DNS</button>; const disableButton = <button type="button" className="btn btn-outline-secondary btn-sm mr-2" onClick={() => this.props.disableDns()}>Disable DNS</button>;
const refreshFullButton = <button type="button" className="btn btn-outline-primary btn-sm" onClick={() => this.props.getStats()}>Refresh statistics</button>; const refreshFullButton = <button type="button" className="btn btn-outline-primary btn-sm" onClick={() => this.componentDidMount()}>Refresh statistics</button>;
const refreshButton = <button type="button" className="btn btn-outline-primary btn-sm card-refresh" onClick={() => this.props.getStats()}></button>; const refreshButton = <button type="button" className="btn btn-outline-primary btn-sm card-refresh" onClick={() => this.componentDidMount()}></button>;
return ( return (
<Fragment> <Fragment>