trigger-service: copy missing fields

This commit is contained in:
Jimmy Zelinskie 2015-03-19 14:32:30 -04:00
parent e6a7156657
commit 9c3655dc17

View file

@ -31,6 +31,18 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
return authorize_url + 'client_id=' + client_id +
'&scope=repo,user:email&redirect_uri=' + redirect_uri;
},
'is_enabled': function() {
return Features.GITHUB_BUILD;
},
'icon': 'fa-github',
'title': function() {
var isEnterprise = KeyService.isEnterprise('github-trigger');
if (isEnterprise) {
return 'GitHub Enterprise Repository Push (API)';
}
return 'GitHub Repository Push (API)';
}
},
@ -64,20 +76,17 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
return authorize_url + 'client_id=' + client_id +
'&scope=repo,user:email&redirect_uri=' + redirect_uri;
},
'is_enabled': function() {
return Features.GITHUB_BUILD;
},
'icon': 'fa-github',
'title': function() {
var isEnterprise = KeyService.isEnterprise('github-trigger');
if (isEnterprise) {
return 'GitHub Enterprise Repository Push';
return 'GitHub Enterprise Repository Push (Deploy Key)';
}
return 'GitHub Repository Push';
return 'GitHub Repository Push (Deploy Key)';
}
}
}