Skip to content

Commit

Permalink
fix: double tooltips shown on discover export button (#71501)
Browse files Browse the repository at this point in the history
Fixes #64553

Export button shows the Feature gate tooltip as well as the small export
size tooltip.
Should not show the small export size tooltip if Feature is not
available.
  • Loading branch information
onkardeshpande93 authored and MichaelSun48 committed Jun 6, 2024
1 parent b1c59f6 commit 0cd5358
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions static/app/views/discover/table/tableActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,13 @@ function renderBrowserExportButton(canEdit: boolean, props: Props) {
onClick={onClick}
data-test-id="grid-download-csv"
icon={<IconDownload />}
title={t(
"There aren't that many results, start your export and it'll download immediately."
)}
title={
!disabled
? t(
"There aren't that many results, start your export and it'll download immediately."
)
: undefined
}
>
{t('Export All')}
</Button>
Expand Down

0 comments on commit 0cd5358

Please sign in to comment.