diff --git a/src/ServicePulse.Host/app/js/views/failed_groups/controller.js b/src/ServicePulse.Host/app/js/views/failed_groups/controller.js index 0db47a72b1..6032e648c6 100644 --- a/src/ServicePulse.Host/app/js/views/failed_groups/controller.js +++ b/src/ServicePulse.Host/app/js/views/failed_groups/controller.js @@ -23,7 +23,8 @@ notifyService, serviceControlService, failedMessageGroupsService, - toastService) { + toastService, + $routeParams) { var vm = this; var notifier = notifyService(); @@ -164,7 +165,12 @@ $cookies.put("failed_groups_classification", classification); }; - var getDefaultClassification = function(classifiers) { + var getDefaultClassification = function (classifiers) { + if ($routeParams.groupBy) { + saveSelectedClassification($routeParams.groupBy); + return $routeParams.groupBy; + } + var storedClassification = $cookies.get("failed_groups_classification"); if (typeof storedClassification === "undefined") { @@ -378,7 +384,8 @@ "notifyService", "serviceControlService", "failedMessageGroupsService", - "toastService" + "toastService", + '$routeParams' ]; angular.module("sc") diff --git a/src/ServicePulse.Host/app/js/views/failed_groups/view.html b/src/ServicePulse.Host/app/js/views/failed_groups/view.html index d36b7b2e78..3761be42e7 100644 --- a/src/ServicePulse.Host/app/js/views/failed_groups/view.html +++ b/src/ServicePulse.Host/app/js/views/failed_groups/view.html @@ -58,7 +58,7 @@