Skip to content

Commit

Permalink
Add logout button, remove close button
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemcdermott committed Sep 29, 2020
1 parent cce5281 commit bbb9897
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions awx/ui_next/src/components/AppContainer/AppContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,18 @@ function AppContainer({ i18n, navRouteConfig = [], children }) {
<AlertModal
title={i18n._(t`Your session is about to expire`)}
isOpen={timeoutWarning && sessionTimeout > 0}
onClose={handleLogout}
showClose={false}
variant="warning"
actions={[
<Button
key="confirm"
variant="primary"
onClick={handleSessionContinue}
>
Continue
{i18n._(t`Continue`)}
</Button>,
<Button key="logout" variant="secondary" onClick={handleLogout}>
{i18n._(t`Logout`)}
</Button>,
]}
>
Expand Down

0 comments on commit bbb9897

Please sign in to comment.