Turn off all references and API calls to github login if the feature is disabled

This commit is contained in:
Joseph Schorr 2014-04-06 00:50:30 -04:00
parent 19a20a6c94
commit badf002e92
6 changed files with 22 additions and 9 deletions

View file

@ -1669,8 +1669,10 @@ quayApp.directive('signinForm', function () {
'signInStarted': '&signInStarted',
'signedIn': '&signedIn'
},
controller: function($scope, $location, $timeout, ApiService, KeyService, UserService, CookieService) {
controller: function($scope, $location, $timeout, ApiService, KeyService, UserService, CookieService, Features) {
$scope.showGithub = function() {
if (!Features.GITHUB_LOGIN) { return; }
$scope.markStarted();
var mixpanelDistinctIdClause = '';