|
|
@@ -188,13 +188,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
|
|
|
_.defaults($scope.panel.grid, _d.grid);
|
|
|
_.defaults($scope.panel.legend, _d.legend);
|
|
|
|
|
|
- $scope.init = function() {
|
|
|
- panelSrv.init($scope);
|
|
|
- $scope.hiddenSeries = {};
|
|
|
- if (!$scope.skipDataOnInit) {
|
|
|
- $scope.get_data();
|
|
|
- }
|
|
|
- };
|
|
|
+ $scope.hiddenSeries = {};
|
|
|
|
|
|
$scope.updateTimeRange = function () {
|
|
|
$scope.range = $scope.filter.timeRange();
|
|
|
@@ -210,10 +204,6 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
|
|
|
};
|
|
|
|
|
|
$scope.get_data = function() {
|
|
|
- delete $scope.panel.error;
|
|
|
-
|
|
|
- $scope.panelMeta.loading = true;
|
|
|
-
|
|
|
$scope.updateTimeRange();
|
|
|
|
|
|
var metricsQuery = {
|
|
|
@@ -297,10 +287,6 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
|
|
|
return series;
|
|
|
};
|
|
|
|
|
|
- $scope.otherPanelInFullscreenMode = function() {
|
|
|
- return $rootScope.fullscreen && !$scope.fullscreen;
|
|
|
- };
|
|
|
-
|
|
|
$scope.render = function(data) {
|
|
|
$scope.$emit('render', data);
|
|
|
};
|
|
|
@@ -371,7 +357,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
|
|
|
$scope.render();
|
|
|
};
|
|
|
|
|
|
- $scope.init();
|
|
|
+ panelSrv.init($scope);
|
|
|
});
|
|
|
|
|
|
});
|