Skip to content

Commit

Permalink
fix(DatasetSidebar): history tab tooltip
Browse files Browse the repository at this point in the history
if there is no history, tooltip should say "This dataset has no previous versions", otherwise, it should say "Explore older versions of this dataset
  • Loading branch information
ramfox committed Sep 30, 2019
1 parent 92d907e commit a73e18f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/DatasetSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const DatasetSidebar: React.FunctionComponent<DatasetSidebarProps> = (props) =>
setHideCommitNudge
} = props

const { path, fsiPath, history, status, components } = workingDataset
const { fsiPath, history, status, components } = workingDataset

const {
activeTab,
Expand Down Expand Up @@ -94,7 +94,7 @@ const DatasetSidebar: React.FunctionComponent<DatasetSidebarProps> = (props) =>
}
}

const historyToolTip = path || !datasetSelected ? 'Explore older versions of this dataset' : 'This dataset has no previous versions'
const historyToolTip = history.value.length !== 0 || !datasetSelected ? 'Explore older versions of this dataset' : 'This dataset has no previous versions'

return (
<div className='dataset-sidebar'>
Expand Down

0 comments on commit a73e18f

Please sign in to comment.