Fix Bug 1974: No.Of Hours Value for the running instances is hidden in Dashboard 40/11840/2
authorSANDHYA.JS <sandhya.j@tataelxsi.co.in>
Tue, 5 Apr 2022 01:58:32 +0000 (07:28 +0530)
committerramanathan <ramerama@tataelxsi.co.in>
Thu, 7 Apr 2022 05:36:20 +0000 (07:36 +0200)
- No.Of Hours Value for the running instances will be visible in Dashboard Instance graph
- Changed the metrics error message
- Changed the font size of mandatory field message.

Change-Id: If6b62d645ba10a38fb969ed189d7e7a5ce2d45a5
Signed-off-by: SANDHYA.JS <sandhya.j@tataelxsi.co.in>
src/app/dashboard/DashboardComponent.ts
src/app/utilities/ns-instances-action/NSInstancesActionComponent.ts
src/assets/scss/app.scss

index d6dc801..b7902a0 100644 (file)
@@ -330,6 +330,11 @@ export class DashboardComponent implements OnInit {
                 }]
             },
             options: {
+                layout: {
+                    padding: {
+                        top: 20
+                    }
+                },
                 hover: {
                     onHover(evt: Event, item: {}): void {
                         const el: HTMLElement = document.getElementById('canvas');
index a66f78a..b5f7b01 100644 (file)
@@ -184,7 +184,7 @@ export class NSInstancesActionComponent {
                 window.open(location);
               } else {
                 this.isLoadingNSInstanceAction = false;
-                this.notifierService.notify('error', this.translateService.instant('GRAFANA.METRICSERROR'));
+                this.notifierService.notify('error', this.translateService.instant('PAGE.NSMETRIC.METRICERROR'));
               }
             });
             this.doChanges();
index 1f7ce6c..2e2eb92 100644 (file)
@@ -150,7 +150,7 @@ body {
     padding-right: 0px;
   }
   .mandatory-label {
-    @include font(null, 10px, null);
+    @include font(null, 11px, null);
   }
   .dropzone {
     min-height: 50px;
@@ -264,10 +264,10 @@ body {
       overflow-y: scroll;
     }
   }
-  .resources-chart-popover{
+  .resources-chart-popover {
     max-width: 60% !important;
     @include font-family("Roboto");
-    .popover-body{
+    .popover-body {
       max-height: 60vh;
       overflow-y: scroll;
     }