Skip to content
Snippets Groups Projects
Unverified Commit c17944c7 authored by Gustavo Saiani's avatar Gustavo Saiani Committed by GitHub
Browse files

Label save button only “Save” when model is brand new (#25800)

parent c5899641
Branches
Tags
No related merge requests found
......@@ -424,7 +424,7 @@ function DatasetEditor(props) {
key="save"
disabled={!canSaveChanges}
actionFn={handleSave}
normalText={t`Save changes`}
normalText={dataset.isSaved() ? t`Save changes` : t`Save`}
activeText={t`Saving…`}
failedText={t`Save failed`}
successText={t`Saved`}
......
......@@ -16,7 +16,7 @@ describe("scenarios > models > create", () => {
cy.get(".ace_editor").should("be.visible").type("select * from ORDERS");
cy.findByText("Save changes").click();
cy.findByText("Save").click();
cy.findByPlaceholderText("What is the name of your card?").type("A name");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment