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

Commit

Permalink
fix: add showAll back to marketplace
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmsibley committed Jul 12, 2018
1 parent 137a9b9 commit e59cf11
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions web/src/main/webapp/my-app/marketplace/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,17 @@ define(['angular', 'jquery', 'require'], function(angular, $, require) {
$scope.searchResultLimit = 20;
$scope.showAll = false;

mainService.isGuest()
.then(function(isGuest) {
if (isGuest) {
$scope.showAll = true;
}
return isGuest;
}).catch(function() {
$log.warn('Cannot get isGuest');
return true;
});

if (currentPage === 'details') {
// Empty string indicates no categories, show all portlets
$scope.categoryToShow = '';
Expand Down

0 comments on commit e59cf11

Please sign in to comment.