From 90c7468d59b3f73546784e3863aafba20aeb1f16 Mon Sep 17 00:00:00 2001 From: Futa Ikeda Date: Mon, 6 Nov 2023 15:36:06 -0500 Subject: [PATCH] Update toast messages --- .../file-actions-menu/submit-to-boa-modal/component.ts | 5 +++-- translations/en-us.yml | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/osf-components/addon/components/file-actions-menu/submit-to-boa-modal/component.ts b/lib/osf-components/addon/components/file-actions-menu/submit-to-boa-modal/component.ts index a4790d68b41..02d46630c04 100644 --- a/lib/osf-components/addon/components/file-actions-menu/submit-to-boa-modal/component.ts +++ b/lib/osf-components/addon/components/file-actions-menu/submit-to-boa-modal/component.ts @@ -89,8 +89,9 @@ export default class SubmitToBoaModal extends Component { 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; } diff --git a/translations/en-us.yml b/translations/en-us.yml index 5abc734c047..81bd5b053c7 100644 --- a/translations/en-us.yml +++ b/translations/en-us.yml @@ -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 support@osf.io 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'