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
This commit is contained in:
James E. Blair 2022-09-29 13:29:55 -07:00
parent 90d8d8fc4b
commit c2f2891bd3
1 changed files with 2 additions and 2 deletions

View File

@ -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>
)