mirror of
https://github.com/ansible/awx.git
synced 2026-04-14 06:29:25 -02:30
Adds ouiaId's to session modal and buttons
This commit is contained in:
@@ -219,6 +219,7 @@ function AppContainer({ i18n, navRouteConfig = [], children }) {
|
|||||||
<ErrorDetail error={configError} />
|
<ErrorDetail error={configError} />
|
||||||
</AlertModal>
|
</AlertModal>
|
||||||
<AlertModal
|
<AlertModal
|
||||||
|
ouiaId="session-expiration-modal"
|
||||||
title={i18n._(t`Your session is about to expire`)}
|
title={i18n._(t`Your session is about to expire`)}
|
||||||
isOpen={timeoutWarning && sessionTimeout > 0 && timeRemaining !== null}
|
isOpen={timeoutWarning && sessionTimeout > 0 && timeRemaining !== null}
|
||||||
onClose={handleLogout}
|
onClose={handleLogout}
|
||||||
@@ -226,13 +227,19 @@ function AppContainer({ i18n, navRouteConfig = [], children }) {
|
|||||||
variant="warning"
|
variant="warning"
|
||||||
actions={[
|
actions={[
|
||||||
<Button
|
<Button
|
||||||
|
ouiaId="session-expiration-continue-button"
|
||||||
key="confirm"
|
key="confirm"
|
||||||
variant="primary"
|
variant="primary"
|
||||||
onClick={handleSessionContinue}
|
onClick={handleSessionContinue}
|
||||||
>
|
>
|
||||||
{i18n._(t`Continue`)}
|
{i18n._(t`Continue`)}
|
||||||
</Button>,
|
</Button>,
|
||||||
<Button key="logout" variant="secondary" onClick={handleLogout}>
|
<Button
|
||||||
|
ouiaId="session-expiration-logout-button"
|
||||||
|
key="logout"
|
||||||
|
variant="secondary"
|
||||||
|
onClick={handleLogout}
|
||||||
|
>
|
||||||
{i18n._(t`Logout`)}
|
{i18n._(t`Logout`)}
|
||||||
</Button>,
|
</Button>,
|
||||||
]}
|
]}
|
||||||
|
|||||||
Reference in New Issue
Block a user