From: Avan Thakkar Date: Thu, 20 Aug 2020 09:32:33 +0000 (+0530) Subject: mgr/dashboard: remove "This week/month/year" and "Today" time stamps of Grafana in... X-Git-Tag: v15.2.5~17^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=363c68cd2aa22b35dfc00fcb8f0ef108a21ce981;p=ceph.git mgr/dashboard: remove "This week/month/year" and "Today" time stamps of Grafana in dashboard Fixes: https://tracker.ceph.com/issues/47049 Signed-off-by: Avan Thakkar (cherry picked from commit f76d56c45fca71ad74c53acb09b9a78f16f83734) --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.ts index afb41361890..4d0094e0ddf 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.ts @@ -84,10 +84,6 @@ export class GrafanaComponent implements OnInit, OnChanges { name: this.i18n('Yesterday'), value: 'from=now-1d%2Fd&to=now-1d%2Fd' }, - { - name: this.i18n('Today'), - value: 'from=now%2Fd&to=now%2Fd' - }, { name: this.i18n('Today so far'), value: 'from=now%2Fd&to=now' @@ -108,10 +104,6 @@ export class GrafanaComponent implements OnInit, OnChanges { name: this.i18n('Previous week'), value: 'from=now-1w%2Fw&to=now-1w%2Fw' }, - { - name: this.i18n('This week'), - value: 'from=now%2Fw&to=now%2Fw' - }, { name: this.i18n('This week so far'), value: 'from=now%2Fw&to=now' @@ -124,10 +116,6 @@ export class GrafanaComponent implements OnInit, OnChanges { name: this.i18n('Previous month'), value: 'from=now-1M%2FM&to=now-1M%2FM' }, - { - name: this.i18n('This month'), - value: 'from=now%2FM&to=now%2FM' - }, { name: this.i18n('This month so far'), value: 'from=now%2FM&to=now' @@ -152,10 +140,6 @@ export class GrafanaComponent implements OnInit, OnChanges { name: this.i18n('Previous year'), value: 'from=now-1y%2Fy&to=now-1y%2Fy' }, - { - name: this.i18n('This year'), - value: 'from=now%2Fy&to=now%2Fy' - }, { name: this.i18n('This year so far'), value: 'from=now%2Fy&to=now'