From cf9a8a15cd0144af782085e23febcdaba2d923e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 27 Feb 2014 08:33:53 +0100 Subject: [PATCH] refactoring graphite panel --- src/app/panels/graphite/module.html | 6 +++--- src/app/panels/graphite/module.js | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/app/panels/graphite/module.html b/src/app/panels/graphite/module.html index 67b1bbbc15d..3ec2f846b99 100644 --- a/src/app/panels/graphite/module.html +++ b/src/app/panels/graphite/module.html @@ -32,7 +32,7 @@ -
+ +
diff --git a/src/app/panels/graphite/module.js b/src/app/panels/graphite/module.js index 6c71deea06f..6ef1a3b5cae 100644 --- a/src/app/panels/graphite/module.js +++ b/src/app/panels/graphite/module.js @@ -38,9 +38,12 @@ function (angular, app, $, _, kbn, moment, timeSeries) { $scope.panelMeta = { modals : [], - editorTabs: [], - fullEditorTabs : [ + editorTabs : [ + { + title: 'General', + src:'app/partials/panelgeneral.html' + }, { title:'Targets', src:'app/panels/graphite/editor.html' @@ -221,7 +224,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) { $scope.fullscreen = false; $scope.options = false; $scope.editor = {index: 1}; - $scope.editorTabs = _.union(['General'],_.pluck($scope.panelMeta.fullEditorTabs,'title')); + $scope.editorTabs = _.pluck($scope.panelMeta.editorTabs,'title'); $scope.hiddenSeries = {}; $scope.datasources = datasourceSrv.listOptions();