From df12038f33b7acf6a3e9329054f1b5ad4cb02cd8 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Mon, 17 Sep 2018 17:44:32 +0300 Subject: [PATCH] Add refresh button to querylog page Closes #331 --- client/src/components/Dashboard/index.js | 10 +++++--- client/src/components/Logs/index.js | 30 +++++++++++++++++------- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/client/src/components/Dashboard/index.js b/client/src/components/Dashboard/index.js index 5b02f199..28bee848 100644 --- a/client/src/components/Dashboard/index.js +++ b/client/src/components/Dashboard/index.js @@ -13,10 +13,14 @@ import Loading from '../ui/Loading'; class Dashboard extends Component { componentDidMount() { + this.getAllStats(); + } + + getAllStats = () => { this.props.getStats(); this.props.getStatsHistory(); this.props.getTopStats(); - } + }; render() { const { dashboard } = this.props; @@ -26,8 +30,8 @@ class Dashboard extends Component { dashboard.processingStatsHistory || dashboard.processingTopStats; - const refreshFullButton = ; - const refreshButton = ; + const refreshFullButton = ; + const refreshButton = {queryLogEnabled && - } + + } + {queryLogEnabled && + + } ); }