Skip to content

Commit

Permalink
Select tenant popup only appears when mutli-tenacy is enabled (#965)
Browse files Browse the repository at this point in the history
The current behavoir is that all users will see a message to switch
tenants and if multi-tenancy is disabled, that message will be prompting
the user to ask the admin to enable the feature.  This is causing users
pain that are not interested in using the tenancy features.

Signed-off-by: Peter Nied <[email protected]>
(cherry picked from commit ec59de0)
  • Loading branch information
peternied authored and github-actions[bot] committed Apr 26, 2022
1 parent 7420eb2 commit f6b45d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/apps/account/account-nav-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export function AccountNavButton(props: {
[props.config, props.coreStart]
);

if (getShouldShowTenantPopup()) {
// Check if the tenant modal should be shown on load
if (props.config.multitenancy.enabled && getShouldShowTenantPopup()) {
setShouldShowTenantPopup(false);
showTenantSwitchPanel();
}
Expand Down

0 comments on commit f6b45d6

Please sign in to comment.