trigger-service: copy missing fields
This commit is contained in:
parent
e6a7156657
commit
9c3655dc17
1 changed files with 14 additions and 5 deletions
|
@ -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)';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue