trigger-setup: set config to activated config

This commit is contained in:
Jimmy Zelinskie 2015-04-06 16:30:42 -04:00
parent 6465e7492a
commit 4ceb68d568

View file

@ -116,6 +116,7 @@ angular.module('quay').directive('setupTriggerDialog', function () {
ApiService.activateBuildTrigger(data, params).then(function(resp) {
$scope.hide();
$scope.trigger['is_active'] = true;
$scope.trigger['config'] = resp['config'];
$scope.trigger['pull_robot'] = resp['pull_robot'];
$scope.activated({'trigger': $scope.trigger});
}, errorHandler);