From 505b0433d1fff8fe5d6285a39afd02495bdb89c9 Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Mon, 29 Jun 2020 10:42:56 +0200 Subject: [PATCH] mgr/dashboard: Remove useless tab in monitoring/alerts datatable details Fixes: https://tracker.ceph.com/issues/46249 Signed-off-by: Volker Theile --- .../rules-list/rules-list.component.html | 24 +++++-------------- .../rules-list/rules-list.component.spec.ts | 4 +--- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.html index 8a23ed67ebf..ba9e7e63cfb 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.html @@ -3,22 +3,10 @@ [hasDetails]="true" (updateSelection)="setExpandedRow($event)" [selectionType]="'single'"> - - - -
-
+ + diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.spec.ts index 74073fcf081..7959717d80c 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.spec.ts @@ -2,8 +2,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; -import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap'; - import { configureTestBed, i18nProviders } from '../../../../../testing/unit-test-helper'; import { PrometheusService } from '../../../../shared/api/prometheus.service'; import { SettingsService } from '../../../../shared/api/settings.service'; @@ -16,7 +14,7 @@ describe('RulesListComponent', () => { configureTestBed({ declarations: [RulesListComponent], - imports: [HttpClientTestingModule, SharedModule, NgbNavModule, BrowserAnimationsModule], + imports: [HttpClientTestingModule, SharedModule, BrowserAnimationsModule], providers: [PrometheusService, SettingsService, i18nProviders] });