Skip to content

Commit

Permalink
rename savedVis to savedObj
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed May 24, 2017
1 parent 3fb6bc9 commit d11cef1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/core_plugins/kibana/public/dashboard/panel/panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
ng-if="!error"
ng-switch-when="visualization"
show-spy-panel="!isFullScreenMode"
saved-vis="savedObj"
saved-obj="savedObj"
app-state="appState"
ui-state="uiState"
data-title="{{savedObj.title}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<filter-bar state="state"></filter-bar>

<visualize
saved-vis="savedVis"
saved-obj="savedVis"
ui-state="uiState"
app-state="state"
editor-mode="true"
Expand Down
8 changes: 4 additions & 4 deletions src/ui/public/visualize/visualize.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {

uiModules
.get('kibana/directive', ['ngSanitize'])
.directive('visualize', function (Notifier, SavedVis, indexPatterns, Private, timefilter) {
.directive('visualize', function (Notifier, Private, timefilter) {
const notify = new Notifier({ location: 'Visualize' });
const requestHandlers = Private(RequestHandlersRegistryProvider);
const responseHandlers = Private(ResponseHandlersRegistryProvider);
Expand All @@ -28,13 +28,13 @@ uiModules
scope : {
showSpyPanel: '=?',
editorMode: '=?',
savedVis: '=',
savedObj: '=',
appState: '=',
uiState: '=?'
},
template: visualizeTemplate,
link: function ($scope, $el) {
$scope.vis = $scope.savedVis.vis;
$scope.vis = $scope.savedObj.vis;
$scope.editorMode = $scope.editorMode || false;
$scope.vis.showSpyPanel = $scope.showSpyPanel || false;

Expand All @@ -43,7 +43,7 @@ uiModules

$scope.fetch = function () {
// searchSource is only there for courier request handler
requestHandler($scope.vis, $scope.appState, $scope.uiState, $scope.savedVis.searchSource)
requestHandler($scope.vis, $scope.appState, $scope.uiState, $scope.savedObj.searchSource)
.then(resp => responseHandler($scope.vis, resp), e => {
$el.trigger('renderComplete');
if (isTermSizeZeroError(e)) {
Expand Down

0 comments on commit d11cef1

Please sign in to comment.