More code cleanup and fix bug around can_admin in the trigger_view

This commit is contained in:
Joseph Schorr 2015-05-03 11:02:05 -07:00
parent c89760278f
commit 0b990677a0
3 changed files with 25 additions and 39 deletions

View file

@ -179,11 +179,7 @@ angular.module('quay').directive('triggerSetupGithost', function () {
};
$scope.scmIcon = function(kind) {
if (kind == 'gitlab') {
return 'fa-git-square';
}
return 'fa-' + kind;
return TriggerService.getIcon(kind);
};
var setupTypeahead = function() {