added ability to add new tabs to editor panels

This commit is contained in:
Rashid Khan
2013-08-16 12:45:22 -07:00
parent 5aaa9d5876
commit 93b48a7d29
27 changed files with 78 additions and 62 deletions
+9 -2
View File
@@ -71,6 +71,14 @@ angular.module('kibana.controllers', [])
}
};
$scope.setEditorTabs = function(panelMeta) {
$scope.editorTabs = ['General','Panel'];
if(!_.isUndefined(panelMeta.editorTabs)) {
$scope.editorTabs = _.union($scope.editorTabs,_.pluck(panelMeta.editorTabs,'title'));
}
return $scope.editorTabs;
};
// This is whoafully incomplete, but will do for now
$scope.parse_error = function(data) {
var _error = data.match("nested: (.*?);");
@@ -125,8 +133,7 @@ angular.module('kibana.controllers', [])
$scope.panel = {
error : false,
span : 3,
editable: true,
group : ['default']
editable: true
};
};