Skip to content

Commit

Permalink
Update alert text to match button text
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Dec 27, 2023
1 parent 336e637 commit fab00a4
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ export function SuggestionAlertMainPage({ ...restProps }) {
if (!hasMatch && numSuggestions > 0) {
let text = t(
'Currently selected dataset does not seem to match your sequences, ' +
'but there are {{ n }} other datasets which might. Click "Change dataset" to see the list.',
'but there are {{ n }} other datasets which might. Click "Change reference dataset" to see the list.',
{ n: numSuggestions },
)

if (numSuggestions === 1) {
text = t(
'Currently selected dataset does not seem to match your sequences, ' +
'but there is 1 dataset which might. Click "Change dataset" to see the list.',
'but there is 1 dataset which might. Click "Change reference dataset" to see the list.',
)
}

Expand All @@ -57,9 +57,12 @@ export function SuggestionAlertMainPage({ ...restProps }) {
<Alert closeClassName="d-none" fade={false} color="primary">
<h6 className="font-weight-bold">{t('Multiple matching datasets.')}</h6>
<p className="small">
{t('{{ n }} datasets appear to match your sequences. Click "Change dataset" to see the list.', {
n: numSuggestions,
})}
{t(
'{{ n }} datasets appear to match your sequences. Click "Change reference dataset" to see the list.',
{
n: numSuggestions,
},
)}
</p>
</Alert>
)
Expand Down

0 comments on commit fab00a4

Please sign in to comment.