Commit f7544f3e by Torkel Ödegaard

fixed so that full editor controls are only loaded when opening editor

parent c9260d7e
......@@ -67,9 +67,15 @@ function (angular, _, config, graphiteFuncs, Parser) {
if ((index-1) >= func.def.params.length) {
throw { message: 'invalid number of parameters to method ' + func.def.name };
}
func.params[index - 1] = astNode.value;
break;
case 'metric':
if ($scope.segments.length > 0) {
throw { message: 'Multiple metric params not supported, use text editor.' };
}
$scope.segments = _.map(astNode.segments, function(segment) {
return {
val: segment.value,
......
......@@ -97,7 +97,7 @@
</span>
</div>
<div class="panel-full-edit-tabs" ng-show="inEditMode">
<div class="panel-full-edit-tabs" ng-if="inEditMode">
<div ng-model="editor.index" bs-tabs>
<div ng-repeat="tab in setEditorTabs(panelMeta)" data-title="{{tab}}">
</div>
......
......@@ -211,7 +211,7 @@ function (angular, app, $, _, kbn, moment, timeSeries, graphiteSrv, RQ) {
$scope.init = function() {
$scope.openConfigureModal({preventDefault: function() {}, stopPropagation: function() {} });
//$scope.openConfigureModal({preventDefault: function() {}, stopPropagation: function() {} });
// Hide view options by default
$scope.options = false;
......
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