Commit 0719a21f authored by Andrey Azov's avatar Andrey Azov
Browse files

Update text in tooltips

parent 74a27802
Pipeline #197110 passed with stages
in 4 minutes and 22 seconds
......@@ -239,7 +239,7 @@ export const TrackPanelListItem = (props: TrackPanelListItemProps) => {
<div className={styles.ellipsisHolder}>
<ImageButton
status={Status.DEFAULT}
description={`Go to ${track.label}`}
description="More information"
onClick={drawerViewButtonHandler}
image={Ellipsis}
/>
......@@ -247,7 +247,7 @@ export const TrackPanelListItem = (props: TrackPanelListItemProps) => {
<div className={styles.eyeHolder}>
<VisibilityIcon
status={trackStatus}
description={'enable/disable track'}
description={getVisibilityIconHelpText(trackStatus)}
onClick={toggleTrack}
/>
</div>
......@@ -258,4 +258,9 @@ export const TrackPanelListItem = (props: TrackPanelListItemProps) => {
);
};
const getVisibilityIconHelpText = (status: TrackActivityStatus) => {
// TODO: check whether the message is still correct after the half-highlighted eye icon is introduced
return status === Status.SELECTED ? 'Hide this track' : 'Show this track';
};
export default TrackPanelListItem;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment