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:
parent
90d8d8fc4b
commit
c2f2891bd3
|
@ -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>
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue