Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FWF-3892 [Bugfix] : Text changes fixes in history and discard modules #2340

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions forms-flow-web/src/components/Form/EditForm/FlowEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ const FlowEdit = forwardRef(({ isPublished = false, CategoryType }, ref) => {
<Card>
<ConfirmModal
show={showDiscardModal}
title={t(`Are you Sure you want to Discard Flow Changes`)}
title={t(`Discard Flow Changes?`)}
message={t(
"Are you sure you want to discard all the changes of the Flow?"
"Are you sure you want to discard all unsaved changes to the flow of the form?"
)}
messageSecondary={t("This action cannot be undone.")}
primaryBtnAction={handleDiscardConfirm}
onClose={handleDiscardModal}
primaryBtnText={t("Discard Changes")}
secondaryBtnText={t("Cancel")}
primaryBtnText={t("Yes, Discard All Unsaved Changes")}
secondaryBtnText={t("No, Keep The Changes")}
secondayBtnAction={handleDiscardModal}
size="sm"
/>
Expand Down
6 changes: 3 additions & 3 deletions forms-flow-web/src/components/Form/EditForm/FormEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -753,14 +753,14 @@ const EditComponent = () => {
};
case "discard":
return {
title: "Are you Sure you want to Discard Layout Changes",
title: "Discard Layout Changes?",
message:
"Are you sure you want to discard all the changes to the layout of the form?",
messageSecondary: "This action cannot be undone.",
primaryBtnAction: discardChanges,
secondayBtnAction: closeModal,
primaryBtnText: "Discard Changes",
secondaryBtnText: "Cancel",
primaryBtnText: "Yes, Discard Changes",
secondaryBtnText: "No, Keep My Changes",
};
default:
return {};
Expand Down
Loading