Skip to content

Commit

Permalink
Update toast messages
Browse files Browse the repository at this point in the history
  • Loading branch information
futa-ikeda committed Nov 6, 2023
1 parent ebf1b4c commit 90c7468
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ export default class SubmitToBoaModal extends Component<Args> {
this.args.closeModal();
} catch (e) {
captureException(e);
this.toast.error(getApiErrorMessage(e),
this.intl.t('osf-components.file-browser.submit_to_boa_fail', { fileName: this.args.file.name }));
const errorMessageKey = this.intl.t('osf-components.file-browser.submit_to_boa_fail',
{ fileName: this.args.file.name, htmlSafe: true }) as string;
this.toast.error(getApiErrorMessage(e), errorMessageKey);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions translations/en-us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2227,8 +2227,8 @@ osf-components:
boa_dataset_select_placeholder: 'Select a dataset'
confirm_submit_to_boa: 'Are you sure you want to submit "{fileName}" to Boa?'
confirm_submit_to_boa_yes: 'Submit'
submit_to_boa_fail: 'Failed to submit "{fileName}" to Boa'
submit_to_boa_success: 'Successfully submitted "{fileName}" to Boa'
submit_to_boa_fail: 'Unable to submit "{fileName}" to Boa. Please try again later. Contact <a href="mailto:support@osf.io">support@osf.io</a> if the problem persists'
submit_to_boa_success: 'Successfully submitted "{fileName}" to Boa. You will be notified by email when the job is done.'
boa_dataset_spiel: 'Please select a dataset to run the query against:'
help_modal:
heading: 'Using the OSF Files Browser'
Expand Down

0 comments on commit 90c7468

Please sign in to comment.