Skip to content

Commit

Permalink
Revert "Remove MDS selector for tenancy tab (#1937)" (#1943)
Browse files Browse the repository at this point in the history
This reverts commit 9d0f262.

Co-authored-by: Darshit Chanpura <[email protected]>
  • Loading branch information
derek-ho and DarshitChanpura authored May 14, 2024
1 parent e41d4d0 commit 37c2695
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions public/apps/configuration/panels/tenant-list/tenant-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ import { ExternalLink } from '../../utils/display-utils';
import { DocLinks } from '../../constants';
import { getDashboardsInfo } from '../../../../utils/dashboards-info-utils';
import { TenantInstructionView } from './tenant-instruction-view';
import { LocalCluster } from '../../app-router';
import { SecurityPluginTopNavMenu } from '../../top-nav-menu';

interface TenantListProps extends AppDependencies {
tabID: string;
Expand Down Expand Up @@ -133,6 +135,12 @@ export function TenantList(props: TenantListProps) {

return (
<>
<SecurityPluginTopNavMenu
{...props}
dataSourcePickerReadOnly={true}
setDataSource={() => {}}
selectedDataSource={LocalCluster}
/>
<EuiPageHeader>
<EuiTitle size="l">
<h1>Dashboards multi-tenancy</h1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ describe('Multi-datasources enabled', () => {
cy.visit(`http://localhost:5601/app/security-dashboards-plugin${localDataSourceUrl}#/tenants`);

cy.contains('h1', 'Dashboards multi-tenancy');
cy.get('[data-test-subj="dataSourceSelectableButton"]').should('not.exist');
cy.get('[data-test-subj="dataSourceViewButton"]').should('contain', 'Local cluster');
});

it('Checks Service Accounts Tab', () => {
Expand Down

0 comments on commit 37c2695

Please sign in to comment.