mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
[explore] fix cached tooltip (#3526)
This commit is contained in:
parent
b50489eb96
commit
3d72eb475a
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user