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
…(#1095)

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)

Co-authored-by: Peter Nied <petern@amazon.com>
  • Loading branch information
opensearch-trigger-bot[bot] and peternied authored Sep 9, 2022
1 parent 7d75048 commit c0e787f
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 c0e787f

Please sign in to comment.