Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
docs: fix inline comments to use "filter" and "sort" more precisely
Browse files Browse the repository at this point in the history
  • Loading branch information
apetro committed Mar 14, 2018
1 parent 4a89b71 commit e0b50f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/src/main/webapp/my-app/marketplace/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,9 @@ define(['angular', 'jquery', 'require'], function(angular, $, require) {
if (currentPage === 'details') {
// Empty string indicates no categories, show all portlets
$scope.categoryToShow = '';
// Default filter is to sort by category for
// marketplaceDetails back to marketplace
// Default to filter by category on return back to app dir browse
$scope.selectedFilter = 'category';
// To sort by category, angular will use title to filter
// When filtering by category, sort by title
$scope.sortParameter = 'title';
// Show category selection div by default
$scope.showCategories = true;
Expand Down

0 comments on commit e0b50f4

Please sign in to comment.