Shoutout to QE on non-QE pages

Fixes #361
This commit is contained in:
Joseph Schorr 2015-11-02 13:52:53 -05:00
parent cc998c6d75
commit cca18f8ede
6 changed files with 91 additions and 30 deletions

View file

@ -11,7 +11,7 @@
}]);
function RepoListCtrl($scope, $sanitize, $q, Restangular, UserService, ApiService, CookieService) {
function RepoListCtrl($scope, $sanitize, $q, Restangular, UserService, ApiService, CookieService, Features) {
$scope.namespace = null;
$scope.page = 1;
$scope.publicPageCount = null;
@ -19,6 +19,7 @@
$scope.loading = true;
$scope.resources = [];
$scope.showAsList = CookieService.get('quay.repoview') == 'list';
$scope.Features = Features;
// When loading the UserService, if the user is logged in, create a list of
// relevant namespaces and collect the relevant repositories.