Skip to content

Commit

Permalink
join concat'd messages
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Nov 23, 2021
1 parent 6054708 commit 68678ea
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions superset-frontend/src/SqlLab/components/ResultSet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -581,24 +581,16 @@ export default class ResultSet extends React.PureComponent<
const isAdmin = !!this.props.user?.roles?.Admin;
const displayMaxRowsReachedMessage = {
withAdmin: t(
'The number of results displayed is limited to %(rows)d by the configuration DISPLAY_MAX_ROWS. ',
{ rows },
).concat(
t(
'Please add additional limits/filters or download to csv to see more rows up to ',
),
t('the %(limit)d limit.', { limit }),
'The number of results displayed is limited to %(rows)d by the configuration DISPLAY_MAX_ROWS. ' +
'Please add additional limits/filters or download to csv to see more rows up to ' +
'the %(limit)d limit.',
{ rows, limit },
),
withoutAdmin: t(
'The number of results displayed is limited to %(rows)d. ',
{ rows },
).concat(
t(
'Please add additional limits/filters, download to csv, or contact an admin ',
),
t('to see more rows up to the %(limit)d limit.', {
limit,
}),
'The number of results displayed is limited to %(rows)d. ' +
'Please add additional limits/filters, download to csv, or contact an admin ' +
'to see more rows up to the %(limit)d limit.',
{ rows, limit },
),
};
const shouldUseDefaultDropdownAlert =
Expand Down

0 comments on commit 68678ea

Please sign in to comment.