Skip to content

Commit

Permalink
[explore] fix cached tooltip (#3526)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Sep 28, 2017
1 parent b50489e commit 3d72eb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superset/assets/javascripts/components/CachedLabel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ class CacheLabel extends React.PureComponent {
updateTooltipContent() {
const cachedText = this.props.cachedTimestamp ? (
<span>
t('Loaded data cached') <b>{moment.utc(this.props.cachedTimestamp).fromNow()}</b>
{t('Loaded data cached')}
<b> {moment.utc(this.props.cachedTimestamp).fromNow()}</b>
</span>) :
t('Loaded from cache');

const tooltipContent = (
<span>
{cachedText}.
{t('Click to force-refresh')}
{cachedText}. {t('Click to force-refresh')}
</span>
);
this.setState({ tooltipContent });
Expand Down

0 comments on commit 3d72eb4

Please sign in to comment.