Просмотр исходного кода

Singlestat: changed singlestat title to centered position, Closes #1117

Torkel Ödegaard 11 лет назад
Родитель
Сommit
e933369f56

+ 0 - 1
src/app/components/panelmeta.js

@@ -5,7 +5,6 @@ function () {
 
   function PanelMeta(options) {
     this.description = options.description;
-    this.titlePos = options.titlePos;
     this.fullscreen = options.fullscreen;
     this.menu = [];
     this.editorTabs = [];

+ 0 - 5
src/app/directives/panelMenu.js

@@ -147,11 +147,6 @@ function (angular, $, _) {
             dismiss(2200);
           };
 
-          if ($scope.panelMeta.titlePos && $scope.panel.title) {
-            elem.css('text-align', 'left');
-            $link.css('padding-left', '10px');
-          }
-
           elem.click(showMenu);
           $compile(elem.contents())($scope);
         }

+ 0 - 1
src/app/panels/singlestat/module.js

@@ -18,7 +18,6 @@ function (angular, app, _, TimeSeries, kbn, PanelMeta) {
 
     $scope.panelMeta = new PanelMeta({
       description: 'Singlestat panel',
-      titlePos: 'left',
       fullscreen: true,
       metricsEditor: true
     });