From 9c3655dc17b572c82b34a543edcb0db4aea8af98 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Thu, 19 Mar 2015 14:32:30 -0400 Subject: [PATCH] trigger-service: copy missing fields --- static/js/services/trigger-service.js | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/static/js/services/trigger-service.js b/static/js/services/trigger-service.js index 4a4bb8471..e7eea560b 100644 --- a/static/js/services/trigger-service.js +++ b/static/js/services/trigger-service.js @@ -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)'; } } }