Skip to content

Commit 44a6a57

Browse files
authored
Merge pull request ceph#64327 from rhcs-dashboard/71907-remove-grafana-time-picker
mgr/dashboard: Remove the time dropdown from grafana iframe. Reviewed-by: Nizamudeen A <[email protected]> Reviewed-by: Ankush Behl <[email protected]> Reviewed-by: Pedro Gonzalez Gomez <[email protected]>
2 parents a52d6a9 + 8580fd5 commit 44a6a57

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.html

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,10 @@
1313
&nbsp;<cd-doc section="grafana"></cd-doc>&nbsp;on how to add dashboards to Grafana.</cd-alert-panel>
1414

1515
<ng-container *ngIf="grafanaExist && dashboardExist">
16-
<div class="row mb-3">
17-
<div class="col-lg-5 d-flex">
18-
<div class="col-md-3 timepicker">
19-
<label for="timepicker"
20-
class="mt-2"
21-
i18n>Grafana Time Picker</label>
22-
</div>
23-
<div class="col-sm-4">
24-
<select id="timepicker"
25-
name="timepicker"
26-
class="form-select"
27-
[(ngModel)]="time"
28-
(ngModelChange)="onTimepickerChange($event)">
29-
<option *ngFor="let key of grafanaTimes"
30-
[ngValue]="key.value">{{ key.name }}
31-
</option>
32-
</select>
33-
</div>
16+
<!--Start : UI row hidden intentionally; code retained as dead code for potential future use. -->
17+
<div class="row mb-3"
18+
*ngIf="showMessage">
19+
<div class="col-lg-5 d-flex" >
3420
<div class="col-sm-1">
3521
<button class="btn btn-light ms-3"
3622
i18n-title
@@ -49,6 +35,7 @@
4935
</div>
5036
</div>
5137
</div>
38+
<!-- end -->
5239

5340
<div class="row">
5441
<div class="col my-2"

0 commit comments

Comments
 (0)