Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@ uiModules
* Handles removing this panel from the grid.
* @type {() => void}
*/
remove: '&'
remove: '&',
/**
* We have to pass the dashboard state on through because filter bar click handlers expect it, as well
* as saved searches. We need to remove reliance there before we can break it out here.
* See https://github.com/elastic/kibana/issues/9558 for more information.
*/
state: '='
},
link: function ($scope, element) {
if (!$scope.panel.id || !$scope.panel.type) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ app.directive('dashboardGrid', function ($compile, Notifier) {
<dashboard-panel remove="removePanelFromState(${panel.panelId})"
panel="getPanelByPanelId(${panel.panelId})"
is-full-screen-mode="!chrome.getVisible()"
state="state"
parent-ui-state="uiState">
</li>`;
panel.$el = $compile(panelHtml)($scope);
Expand Down