Commit 1818000d by Rashid Khan

Fixed issue where dashboards with old timepicker settings would fail. Now throws…

Fixed issue where dashboards with old timepicker settings would fail. Now throws error on timepicker
parent 6eae38eb
......@@ -201,6 +201,7 @@ angular.module('kibana.timepicker', [])
}
$scope.time_apply = function() {
$scope.panel.error = "";
// Update internal time object
$scope.time = $scope.time_calc();
$scope.time.field = $scope.panel.timefield
......@@ -213,8 +214,12 @@ angular.module('kibana.timepicker', [])
$scope.panel.index,
$scope.panel.index_interval
).then(function (p) {
if(p.length > 0) {
$scope.time.index = p;
eventBus.broadcast($scope.$id,$scope.panel.group,'time',compile_time($scope.time))
} else {
$scope.panel.error = "Could not match index pattern to any ElasticSearch indices"
}
});
} else {
$scope.time.index = [$scope.panel.index];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment