Skip to content

Commit

Permalink
Make sure we tell angular what's up
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Oct 21, 2020
1 parent 3a31dc5 commit 2b91e11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x-pack/plugins/monitoring/public/views/loading/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,18 @@ uiRoutes.when('/loading', {
(clusters) => {
if (!clusters || !clusters.length) {
window.location.hash = '#/no-data';
$scope.$apply();
return;
}
if (clusters.length === 1) {
// Bypass the cluster listing if there is just 1 cluster
window.history.replaceState(null, null, '#/overview');
$scope.$apply();
return;
}

window.history.replaceState(null, null, '#/home');
$scope.$apply();
}
);
}
Expand Down

0 comments on commit 2b91e11

Please sign in to comment.