19 lines
No EOL
541 B
JavaScript
19 lines
No EOL
541 B
JavaScript
(function() {
|
|
/**
|
|
* Experiment enable page: New layout
|
|
*/
|
|
angular.module('quayPages').config(['pages', function(pages) {
|
|
pages.create('exp-new-sec-layout', 'exp-new-sec-layout.html', ExpCtrl, {
|
|
'newLayout': true
|
|
});
|
|
}]);
|
|
|
|
function ExpCtrl($scope, CookieService) {
|
|
$scope.isEnabled = CookieService.get('quay.exp-new-sec-layout') == 'true';
|
|
|
|
$scope.setEnabled = function(value) {
|
|
$scope.isEnabled = value;
|
|
CookieService.putPermanent('quay.exp-new-sec-layout', value.toString());
|
|
};
|
|
}
|
|
}()); |