mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Collapse route updates listeners
This commit is contained in:
parent
b943f76e1f
commit
f9530a4312
1 changed files with 2 additions and 9 deletions
|
@ -36,15 +36,8 @@ define(function (require) {
|
|||
$scope.activeApp = route ? route[1] : null;
|
||||
}
|
||||
|
||||
$scope.$on('$routeChangeSuccess', function (event, data) {
|
||||
if (!data) return;
|
||||
updateAppData();
|
||||
});
|
||||
|
||||
$scope.$on('$routeUpdate', function (event, data) {
|
||||
if (!data) return;
|
||||
updateAppData();
|
||||
});
|
||||
$scope.$on('$routeChangeSuccess', updateAppData);
|
||||
$scope.$on('$routeUpdate', updateAppData);
|
||||
|
||||
$rootScope.rootDataSource = courier.createSource('search')
|
||||
.index('logstash-*');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue