Add an icon for build triggers and properly handle build trigger activation errors

This commit is contained in:
Joseph Schorr 2014-02-26 18:43:16 -05:00
parent eca525e18c
commit 39eaca346d
3 changed files with 4 additions and 4 deletions

View file

@ -1449,8 +1449,9 @@ function RepoAdminCtrl($scope, Restangular, ApiService, KeyService, $routeParams
ApiService.activateBuildTrigger(trigger['config'], params).then(function(resp) {
trigger['is_active'] = true;
}, function(resp) {
$scope.triggers.splice($scope.triggers.indexOf(trigger), 1);
bootbox.dialog({
"message": resp['message'] || 'The build trigger setup could not be completed',
"message": resp['data']['message'] || 'The build trigger setup could not be completed',
"title": "Could not activate build trigger",
"buttons": {
"close": {