Skip to content

Commit

Permalink
Change unsaved changes button text
Browse files Browse the repository at this point in the history
"Go back" to "Discard changes"
  • Loading branch information
Timothy Jennison authored and tjennison-work committed Oct 22, 2024
1 parent 5915710 commit 4a3f973
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/cypress/e2e/multiSelect.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("Basic tests", () => {
cy.iframe().find("button:Contains('Cancel')").click();

cy.iframe().find("button[aria-label=back]").click();
cy.iframe().find("button:Contains('Go back')").click();
cy.iframe().find("button:Contains('Discard changes')").click();

cy.iframe()
.find("p:Contains('Condition: Clinical finding and 1 more')")
Expand Down
2 changes: 1 addition & 1 deletion ui/src/criteria/classification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function ClassificationEdit(props: ClassificationEditProps) {
showUnconfirmedChangesDialog({
title: "Unsaved changes",
text: "Unsaved changes will be lost if you go back without saving.",
buttons: ["Cancel", "Go back", "Save"],
buttons: ["Cancel", "Discard changes", "Save"],
onButton: (button) => {
if (button === 1) {
props.doneAction();
Expand Down
2 changes: 1 addition & 1 deletion ui/src/criteria/filterableGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function FilterableGroupEdit(props: FilterableGroupEditProps) {
showUnconfirmedChangesDialog({
title: "Unsaved changes",
text: "Unsaved changes will be lost if you go back without saving.",
buttons: ["Cancel", "Go back", "Save"],
buttons: ["Cancel", "Discard changes", "Save"],
onButton: (button) => {
if (button === 1) {
props.doneAction();
Expand Down
2 changes: 1 addition & 1 deletion ui/src/criteria/survey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function SurveyEdit(props: SurveyEditProps) {
showUnconfirmedChangesDialog({
title: "Unsaved changes",
text: "Unsaved changes will be lost if you go back without saving.",
buttons: ["Cancel", "Go back", "Save"],
buttons: ["Cancel", "Discard changes", "Save"],
onButton: (button) => {
if (button === 1) {
props.doneAction();
Expand Down

0 comments on commit 4a3f973

Please sign in to comment.