diff options
author | James E. Blair <jim@acmegating.com> | 2022-09-29 13:29:55 -0700 |
---|---|---|
committer | James E. Blair <jim@acmegating.com> | 2022-10-25 20:19:42 -0700 |
commit | c2f2891bd33411db1989a6a1a1c575ce41046a33 (patch) | |
tree | be6436cb0cea1785f210aa8b3274f3a292c48455 /web | |
parent | 90d8d8fc4babe1b12d9adb5e95b2314c7f83eafe (diff) | |
download | zuul-c2f2891bd33411db1989a6a1a1c575ce41046a33.tar.gz |
Show login button any time auth is available
We currently only show the login button when in the context of a
tenant. Now that we have an auth context for the "root" level of
a multi-tenant zuul, show the login button there as well.
Change-Id: Ic1d39951a0cf481c6fac4700ba9bb9338478cd7c
Diffstat (limited to 'web')
-rw-r--r-- | web/src/App.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/src/App.jsx b/web/src/App.jsx index 8125fea39..4762175c6 100644 --- a/web/src/App.jsx +++ b/web/src/App.jsx @@ -340,7 +340,7 @@ class App extends React.Component { render() { const { isKebabDropdownOpen } = this.state - const { notifications, configErrors, tenant, info } = this.props + const { notifications, configErrors, tenant, info, auth } = this.props const nav = this.renderMenu() @@ -454,7 +454,7 @@ class App extends React.Component { <SelectTz /> <ConfigModal /> - {tenant.name && (<AuthContainer />)} + {auth.info && auth.info.default_realm && (<AuthContainer />)} </PageHeaderTools> ) |