Skip to content

Commit

Permalink
chore: SQLLab row limit warning using Alert component (#14298)
Browse files Browse the repository at this point in the history
  • Loading branch information
zuzana-vej authored Apr 22, 2021
1 parent 38a7c53 commit 86233d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superset-frontend/src/SqlLab/components/ResultSet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,9 @@ export default class ResultSet extends React.PureComponent<
const limitReached = results?.displayLimitReached;
return (
<ReturnedRows>
{!limitReached && <span>{t(`%s rows returned`, rows)}</span>}
{!limitReached && (
<Alert type="warning" message={t(`%s rows returned`, rows)} />
)}
{limitReached && (
<Alert
type="warning"
Expand Down

0 comments on commit 86233d1

Please sign in to comment.