]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: remove "This week/month/year" and "Today" time stamps of Grafana in...
authorAvan Thakkar <athakkar@redhat.com>
Thu, 20 Aug 2020 09:32:33 +0000 (15:02 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Fri, 21 Aug 2020 07:07:35 +0000 (12:37 +0530)
Fixes: https://tracker.ceph.com/issues/47049
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.ts

index 18649d48870c2eeccc35f45457a9e7211f42a52e..48f6fe7cd4c66ba0b4798a48184e8b0044c207fa 100644 (file)
@@ -72,10 +72,6 @@ export class GrafanaComponent implements OnInit, OnChanges {
         name: $localize`Yesterday`,
         value: 'from=now-1d%2Fd&to=now-1d%2Fd'
       },
-      {
-        name: $localize`Today`,
-        value: 'from=now%2Fd&to=now%2Fd'
-      },
       {
         name: $localize`Today so far`,
         value: 'from=now%2Fd&to=now'
@@ -96,10 +92,6 @@ export class GrafanaComponent implements OnInit, OnChanges {
         name: $localize`Previous week`,
         value: 'from=now-1w%2Fw&to=now-1w%2Fw'
       },
-      {
-        name: $localize`This week`,
-        value: 'from=now%2Fw&to=now%2Fw'
-      },
       {
         name: $localize`This week so far`,
         value: 'from=now%2Fw&to=now'
@@ -112,10 +104,6 @@ export class GrafanaComponent implements OnInit, OnChanges {
         name: $localize`Previous month`,
         value: 'from=now-1M%2FM&to=now-1M%2FM'
       },
-      {
-        name: $localize`This month`,
-        value: 'from=now%2FM&to=now%2FM'
-      },
       {
         name: $localize`This month so far`,
         value: 'from=now%2FM&to=now'
@@ -140,10 +128,6 @@ export class GrafanaComponent implements OnInit, OnChanges {
         name: $localize`Previous year`,
         value: 'from=now-1y%2Fy&to=now-1y%2Fy'
       },
-      {
-        name: $localize`This year`,
-        value: 'from=now%2Fy&to=now%2Fy'
-      },
       {
         name: $localize`This year so far`,
         value: 'from=now%2Fy&to=now'