diff --git a/client/src/components/Dashboard/index.js b/client/src/components/Dashboard/index.js index f71c2361..d847fb40 100644 --- a/client/src/components/Dashboard/index.js +++ b/client/src/components/Dashboard/index.js @@ -26,7 +26,7 @@ class Dashboard extends Component { getToggleFilteringButton = () => { const { isFilteringEnabled } = this.props.dashboard; const buttonText = isFilteringEnabled ? 'Disable' : 'Enable'; - const buttonClass = isFilteringEnabled ? 'btn-outline-secondary' : 'btn-outline-success'; + const buttonClass = isFilteringEnabled ? 'btn-gray' : 'btn-success'; return ( - {queryLogEnabled && + if (queryLogEnabled) { + return ( + + - } - {queryLogEnabled && - } - ); + + ); + } + + return ( + + ); } render() { const { queryLogs, dashboard } = this.props; const { queryLogEnabled } = dashboard; return ( -
- + + +
+ {this.renderButtons(queryLogEnabled)} +
+
- {this.renderButtons(queryLogEnabled)} {queryLogEnabled && queryLogs.processing && } {queryLogEnabled && !queryLogs.processing && this.renderLogs(queryLogs.logs)} -
+ ); } }