From 7e38d2347510fae15ed34a6cb960797e8984e319 Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Mon, 8 Apr 2019 09:00:56 +0200 Subject: [PATCH] Fix ui-glitch in pause tooltip --- app/src/components/Layout/PauseButton.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/components/Layout/PauseButton.tsx b/app/src/components/Layout/PauseButton.tsx index 21de893..b1e0647 100644 --- a/app/src/components/Layout/PauseButton.tsx +++ b/app/src/components/Layout/PauseButton.tsx @@ -59,13 +59,16 @@ class PauseButton extends React.Component { } public render() { - const { actions, classes } = this.props - + const message = this.props.paused ? 'Resumes updating the tree, after applying all recorded changes' : 'Stops all updates, records changes until the buffer is full.' return (
- {this.props.paused ? this.renderResume() : this.renderPause()} + +
+ {this.props.paused ? : } +
+
{this.props.paused ? this.renderBufferStats() : null}