Move smtp warning so it will be seen without scrolling. (#4421)

This commit is contained in:
Stan Silvert 2023-02-20 02:08:43 -05:00 committed by GitHub
parent 94df37238a
commit bcffc01718
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -333,43 +333,6 @@ export const RealmSettingsEmailTab = ({
</FormGroup>
</>
)}
<ActionGroup>
<ActionListItem>
<Button
variant="primary"
type="submit"
data-testid="email-tab-save"
>
{t("common:save")}
</Button>
</ActionListItem>
<ActionListItem>
<Button
variant="secondary"
onClick={() => testConnection()}
data-testid="test-connection-button"
isDisabled={
!(emailRegexPattern.test(watchFromValue) && watchHostValue) ||
!currentUser?.email
}
aria-describedby="descriptionTestConnection"
isLoading={isTesting}
spinnerAriaValueText={t("testingConnection")}
>
{t("common:testConnection")}
</Button>
</ActionListItem>
<ActionListItem>
<Button
variant="link"
onClick={reset}
data-testid="email-tab-revert"
>
{t("common:revert")}
</Button>
</ActionListItem>
</ActionGroup>
{currentUser && (
<FormGroup id="descriptionTestConnection">
{currentUser.email ? (
@ -407,6 +370,42 @@ export const RealmSettingsEmailTab = ({
)}
</FormGroup>
)}
<ActionGroup>
<ActionListItem>
<Button
variant="primary"
type="submit"
data-testid="email-tab-save"
>
{t("common:save")}
</Button>
</ActionListItem>
<ActionListItem>
<Button
variant="secondary"
onClick={() => testConnection()}
data-testid="test-connection-button"
isDisabled={
!(emailRegexPattern.test(watchFromValue) && watchHostValue) ||
!currentUser?.email
}
aria-describedby="descriptionTestConnection"
isLoading={isTesting}
spinnerAriaValueText={t("testingConnection")}
>
{t("common:testConnection")}
</Button>
</ActionListItem>
<ActionListItem>
<Button
variant="link"
onClick={reset}
data-testid="email-tab-revert"
>
{t("common:revert")}
</Button>
</ActionListItem>
</ActionGroup>
</FormAccess>
</FormPanel>
</PageSection>