Skip to content

Commit

Permalink
ERM-3041 Dashboard: the "unsaved changes" confirmation modal is missing
Browse files Browse the repository at this point in the history
* add translations
  • Loading branch information
CalamityC committed Feb 12, 2024
1 parent 23590ca commit 8492838
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/hooks/useErmForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ const useErmForm = ({ navigationCheck = true } = {}) => {
}}
/>
<ConfirmationModal
cancelLabel={<FormattedMessage id="stripes-form.closeWithoutSaving" />}
confirmLabel={<FormattedMessage id="stripes-form.keepEditing" />}
heading={intl.formatMessage({ id: 'stripes-form.areYouSure' })}
cancelLabel={<FormattedMessage id="stripes-erm-components.closeWithoutSaving" />}
confirmLabel={<FormattedMessage id="stripes-erm-components.keepEditing" />}
heading={intl.formatMessage({ id: 'stripes-erm-components.areYouSure' })}
id="cancel-editing-confirmation"
message={<FormattedMessage id="stripes-form.unsavedChanges" />}
message={<FormattedMessage id="stripes-erm-components.unsavedChanges" />}
onCancel={() => continueNavigation(ctx)}
onConfirm={closeModal}
open={openModal}
Expand Down
7 changes: 6 additions & 1 deletion translations/stripes-erm-components/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,10 @@
"numberOfTags": "{count, number} {count, plural, one {Tag} other {Tags}}",
"newTagCreated": "New tag created",
"no": "No",
"yes": "Yes"
"yes": "Yes",
"unsavedChanges": "There are unsaved changes",
"areYouSure": "Are you sure?",
"saveChanges": "Save Changes",
"closeWithoutSaving": "Close without saving",
"keepEditing": "Keep editing"
}

0 comments on commit 8492838

Please sign in to comment.