Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/unknown-ds-fix' into unknown-ds-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DarshitChanpura committed May 17, 2024
2 parents 76880f8 + ac06227 commit 1e314a7
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 1e314a7

Please sign in to comment.