Merge pull request #438 from mfrances17/revert-button

Rename Reload buttons to Revert
This commit is contained in:
mfrances17 2021-03-15 14:11:27 -04:00 committed by GitHub
commit c1f5c4db82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 15 additions and 15 deletions

View file

@ -158,7 +158,7 @@ describe("Clients test", function () {
advancedTab
.selectAccessTokenSignatureAlgorithm("HS384")
.clickReloadFineGrain();
.clickRevertFineGrain();
advancedTab.checkAccessTokenSignatureAlgorithm(algorithm);
});
});

View file

@ -15,7 +15,7 @@ export default class AdvancedTab {
private accessTokenSignatureAlgorithm = "#accessTokenSignatureAlgorithm";
private fineGrainSave = "#fineGrainSave";
private fineGrainReload = "#fineGrainReload";
private fineGrainRevert = "#fineGrainRevert";
private advancedTab = "#pf-tab-advanced-advanced";
@ -98,8 +98,8 @@ export default class AdvancedTab {
return this;
}
clickReloadFineGrain() {
cy.get(this.fineGrainReload).click();
clickRevertFineGrain() {
cy.get(this.fineGrainRevert).click();
return this;
}
}

View file

@ -154,7 +154,7 @@ export const AdvancedSettings = ({
{t("common:save")}
</Button>
<Button variant="link" onClick={reset}>
{t("common:reload")}
{t("common:revert")}
</Button>
</ActionGroup>
</FormAccess>

View file

@ -348,8 +348,8 @@ export const FineGrainOpenIdConnect = ({
<Button id="fineGrainSave" variant="tertiary" onClick={save}>
{t("common:save")}
</Button>
<Button id="fineGrainReload" variant="link" onClick={reset}>
{t("common:reload")}
<Button id="fineGrainRevert" variant="link" onClick={reset}>
{t("common:revert")}
</Button>
</ActionGroup>
</FormAccess>

View file

@ -103,7 +103,7 @@ export const FineGrainSamlEndpointConfig = ({
{t("common:save")}
</Button>
<Button variant="link" onClick={reset}>
{t("common:reload")}
{t("common:revert")}
</Button>
</ActionGroup>
</FormAccess>

View file

@ -51,7 +51,7 @@ export const OpenIdConnectCompatibilityModes = ({
{t("common:save")}
</Button>
<Button variant="link" onClick={reset}>
{t("common:reload")}
{t("common:revert")}
</Button>
</ActionGroup>
</FormAccess>

View file

@ -15,8 +15,8 @@ export const SaveReset = ({ name, save, reset }: SaveResetProps) => {
<Button data-testid={name + "Save"} variant="tertiary" onClick={save}>
{t("common:save")}
</Button>
<Button data-testid={name + "Reload"} variant="link" onClick={reset}>
{t("common:reload")}
<Button data-testid={name + "Revert"} variant="link" onClick={reset}>
{t("common:revert")}
</Button>
</ActionGroup>
);

View file

@ -8,7 +8,7 @@
"no": "No",
"create": "Create",
"save": "Save",
"reload": "Reload",
"revert": "Revert",
"cancel": "Cancel",
"continue": "Continue",
"delete": "Delete",

View file

@ -81,7 +81,7 @@ export const RealmRoleForm = ({
{t("common:save")}
</Button>
<Button onClick={() => reset()} variant="link">
{editMode ? t("common:reload") : t("common:cancel")}
{editMode ? t("common:revert") : t("common:cancel")}
</Button>
</ActionGroup>
</FormAccess>

View file

@ -146,7 +146,7 @@ export const RoleAttributes = ({
{t("common:save")}
</Button>
<Button onClick={reset} variant="link">
{t("common:reload")}
{t("common:revert")}
</Button>
</ActionGroup>
</FormAccess>

View file

@ -324,7 +324,7 @@ export const RealmSettingsSection = () => {
{t("common:save")}
</Button>
<Button variant="link" onClick={() => setupForm(realm!)}>
{t("common:reload")}
{t("common:revert")}
</Button>
</ActionGroup>
</FormAccess>