]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: remove "This week/month/year" and "Today" time stamps of Grafana in... 36790/head
authorAvan Thakkar <athakkar@redhat.com>
Thu, 20 Aug 2020 09:32:33 +0000 (15:02 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Tue, 25 Aug 2020 10:15:35 +0000 (15:45 +0530)
Fixes: https://tracker.ceph.com/issues/47049
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit f76d56c45fca71ad74c53acb09b9a78f16f83734)

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

index 1a2656e00ca32c2afd1338bc441c4cd68e09ff4e..af7158c3dbdf483f1b27dc888eabba95af42fabf 100644 (file)
@@ -82,10 +82,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'
@@ -106,10 +102,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'
@@ -122,10 +114,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'
@@ -150,10 +138,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'