Bläddra i källkod

fixed unit tests

Torkel Ödegaard 7 år sedan
förälder
incheckning
e7fe0bd668
2 ändrade filer med 6 tillägg och 5 borttagningar
  1. 5 1
      public/app/core/config.ts
  2. 1 4
      public/sass/components/_panel_logs.scss

+ 5 - 1
public/app/core/config.ts

@@ -54,7 +54,11 @@ export class Settings {
   }
 }
 
-const bootData = (window as any).grafanaBootData || { settings: {} };
+const bootData = (window as any).grafanaBootData || {
+  settings: {},
+  user: {},
+};
+
 const options = bootData.settings;
 options.bootData = bootData;
 

+ 1 - 4
public/sass/components/_panel_logs.scss

@@ -78,6 +78,7 @@ $column-horizontal-spacing: 10px;
 
 .logs-row__labels {
   max-width: 20%;
+  line-height: 1.2;
 }
 
 .logs-row__message {
@@ -189,10 +190,6 @@ $column-horizontal-spacing: 10px;
   box-shadow: $popover-shadow;
 }
 
-.logs-row__labels {
-  line-height: 1.2;
-}
-
 .logs-stats__info {
   margin-bottom: $spacer / 2;
 }