Commit 0f7e4c7d by Torkel Ödegaard

tabs fix in fulleditor

parent 9f04c502
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<div class="panel-full-edit-tabs" ng-if="inEditMode"> <div class="panel-full-edit-tabs" ng-if="inEditMode">
<div ng-model="editor.index" bs-tabs> <div ng-model="editor.index" bs-tabs>
<div ng-repeat="tab in setEditorTabs(panelMeta)" data-title="{{tab}}"> <div ng-repeat="tab in editorTabs" data-title="{{tab}}">
</div> </div>
</div> </div>
<div ng-show="editorTabs[editor.index] == 'General'"> <div ng-show="editorTabs[editor.index] == 'General'">
......
...@@ -215,6 +215,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) { ...@@ -215,6 +215,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
// Hide view options by default // Hide view options by default
$scope.options = false; $scope.options = false;
$scope.editor = {index: 1}; $scope.editor = {index: 1};
$scope.editorTabs = _.union(['General'],_.pluck($scope.panelMeta.fullEditorTabs,'title'));
$scope.hiddenSeries = {}; $scope.hiddenSeries = {};
// Always show the query if an alias isn't set. Users can set an alias if the query is too // Always show the query if an alias isn't set. Users can set an alias if the query is too
...@@ -441,10 +442,6 @@ function (angular, app, $, _, kbn, moment, timeSeries) { ...@@ -441,10 +442,6 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
$scope.$emit('toggleLegend', info.alias); $scope.$emit('toggleLegend', info.alias);
}; };
$scope.setEditorTabs = function(panelMeta) {
$scope.editorTabs = _.union(['General'],_.pluck(panelMeta.fullEditorTabs,'title'));
};
}); });
module.directive('histogramChart', function(filterSrv) { module.directive('histogramChart', function(filterSrv) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment