From c2f2891bd33411db1989a6a1a1c575ce41046a33 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 29 Sep 2022 13:29:55 -0700 Subject: 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 --- web/src/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web') 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 { - {tenant.name && ()} + {auth.info && auth.info.default_realm && ()} ) -- cgit v1.2.1