mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
wip: panel-header: Fix shareModal compatibility with react and angular
This commit is contained in:
parent
9c28ff8f84
commit
08251425ca
@ -12,8 +12,8 @@ export function ShareModalCtrl($scope, $rootScope, $location, $timeout, timeSrv,
|
|||||||
$scope.editor = { index: $scope.tabIndex || 0 };
|
$scope.editor = { index: $scope.tabIndex || 0 };
|
||||||
|
|
||||||
$scope.init = () => {
|
$scope.init = () => {
|
||||||
$scope.panel = $scope.model.panel || $scope.panel; // React pass panel and dashboard in the "model" property
|
$scope.panel = $scope.model && $scope.model.panel ? $scope.model.panel : $scope.panel; // React pass panel and dashboard in the "model" property
|
||||||
$scope.dashboard = $scope.model.dashboard || $scope.dashboard;
|
$scope.dashboard = $scope.model && $scope.model.dashboard ? $scope.model.dashboard : $scope.dashboard; // ^
|
||||||
$scope.modeSharePanel = $scope.panel ? true : false;
|
$scope.modeSharePanel = $scope.panel ? true : false;
|
||||||
|
|
||||||
$scope.tabs = [{ title: 'Link', src: 'shareLink.html' }];
|
$scope.tabs = [{ title: 'Link', src: 'shareLink.html' }];
|
||||||
|
Loading…
Reference in New Issue
Block a user