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

@ -1,4 +1,4 @@
<span class="icon-image-view-element">
<img ng-src="{{ value }}" ng-if="value.indexOf('http') == 0">
<i class="fa" ng-class="value" ng-if="value.indexOf('http') < 0"></i>
</span>
</span>

View file

@ -15,4 +15,4 @@ angular.module('quay').directive('iconImageView', function () {
}
};
return directiveDefinitionObject;
});
});

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,