Skip to content

Commit

Permalink
Bug 1464273 - Fix classified/unclassified in Filters menu (#3599)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Dawson authored and edmorley committed Jun 1, 2018
1 parent f25588d commit e737a08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/js/controllers/filters.js
Expand Up @@ -78,11 +78,12 @@ treeherderApp.controller('JobFilterCtrl', [
* neither or both.
*/
$scope.toggleClassifiedFilter = function () {
const func = $scope.classifiedFilter? thJobFilters.addFilter: thJobFilters.removeFilter;
const func = $scope.classifiedFilter ? thJobFilters.removeFilter : thJobFilters.addFilter;
func(thJobFilters.classifiedState, 'classified');
};

$scope.toggleUnClassifiedFilter = function () {
const func = $scope.unClassifiedFilter? thJobFilters.addFilter: thJobFilters.removeFilter;
const func = $scope.unClassifiedFilter ? thJobFilters.removeFilter : thJobFilters.addFilter;
func(thJobFilters.classifiedState, 'unclassified');
};

Expand Down

0 comments on commit e737a08

Please sign in to comment.