Skip to content

Commit

Permalink
#245 Sort analyzers list in observable details page
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jun 28, 2017
1 parent 740140d commit 4622826
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions ui/app/scripts/controllers/case/CaseObservablesItemCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,25 +78,15 @@
$scope.onJobsChange = function (updates) {
$scope.analyzerJobs = {};

angular.forEach($scope.analyzers, function (analyzer, analyzerId) {
_.each(_.keys($scope.analyzers).sort(), function(analyzerId) {
$scope.analyzerJobs[analyzerId] = [];
});
});

angular.forEach($scope.jobs.values, function (job) {
if (job.analyzerId in $scope.analyzerJobs) {
$scope.analyzerJobs[job.analyzerId].push(job);
} else {
$scope.analyzerJobs[job.analyzerId] = [job];

/*
AnalyzerSrv.get(job.analyzerId)
.finally(function (data) {
$scope.analyzers[data.analyzerId] = {
active: false,
showRows: false
};
});
*/
}
});

Expand Down

0 comments on commit 4622826

Please sign in to comment.