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
…970)

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 <petern@amazon.com>
(cherry picked from commit ec59de0)
  • Loading branch information
opensearch-trigger-bot[bot] committed May 16, 2022
1 parent d9cdb82 commit 74dc2ab
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 74dc2ab

Please sign in to comment.