Add experiment to hide the new Clair UI

This commit is contained in:
Joseph Schorr 2016-02-25 17:42:09 -05:00
parent 09d8e643c0
commit 4c5c46aa8f
7 changed files with 241 additions and 3 deletions

View file

@ -10,13 +10,15 @@
})
}]);
function ImageViewCtrl($scope, $routeParams, $rootScope, $timeout, ApiService, ImageMetadataService, Features) {
function ImageViewCtrl($scope, $routeParams, $rootScope, $timeout, ApiService, ImageMetadataService, Features, CookieService) {
var namespace = $routeParams.namespace;
var name = $routeParams.name;
var imageid = $routeParams.image;
$scope.imageSecurityCounter = 0;
$scope.imagePackageCounter = 0;
$scope.newUIExperiment = CookieService.get('quay.exp-new-sec-layout') == 'true';
$scope.options = {
'vulnFilter': ''
};