Allow editing editorState in data panel (#33305) (#33772)

This commit is contained in:
Tim Roes 2019-03-25 09:37:42 -03:00 committed by GitHub
parent 16763d4848
commit c9dece8055
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,12 @@ uiModules
$scope.groupNameLabel = aggGroupNameMaps()[$scope.groupName];
$scope.$bind('group', 'state.aggs.bySchemaGroup["' + $scope.groupName + '"]');
$scope.$bind('schemas', 'vis.type.schemas["' + $scope.groupName + '"]');
// We use `editorState` to access the state of the editor in the options panels.
// There are some aggregations (dot size metric) that needs to set parameters on the
// editorState too. Since we have the editor state here available as `state`, we're just
// binding it to the same name `editorState` so the controls look the same if they are in
// the data tab or within any other options tab.
$scope.$bind('editorState', 'state');
$scope.$watchMulti([
'schemas',