Small JS fixes for the PR

This commit is contained in:
Joseph Schorr 2017-01-26 12:03:56 -05:00
parent f8deb85751
commit c9812864be
3 changed files with 4 additions and 5 deletions

View file

@ -5,7 +5,7 @@ angular.module('quay').factory('ExternalLoginService', ['Features', 'Config', 'A
function(Features, Config, ApiService) {
var externalLoginService = {};
externalLoginService.EXTERNAL_LOGINS = window.__external_login;
externalLoginService.EXTERNAL_LOGINS = window.__external_login || [];
externalLoginService.getLoginUrl = function(loginService, action, callback) {
var errorDisplay = ApiService.errorDisplay('Could not load external login service ' +
@ -31,8 +31,7 @@ angular.module('quay').factory('ExternalLoginService', ['Features', 'Config', 'A
externalLoginService.getSingleSigninUrl = function(callback) {
if (!externalLoginService.hasSingleSignin()) {
callback(null);
return;
return callback(null);
}
// If there is a single external login service and direct login is disabled,