custom trigger: initial setup wizard

This commit is contained in:
Jimmy Zelinskie 2015-03-27 17:07:06 -04:00
parent c5272f3545
commit 7d1d53ebcb
8 changed files with 86 additions and 31 deletions

View file

@ -0,0 +1,35 @@
/**
* An element which displays custom git-specific setup information for its build triggers.
*/
angular.module('quay').directive('triggerSetupCustom', function() {
var directiveDefinitionObject = {
priority: 0,
templateUrl: '/static/directives/trigger-setup-custom.html',
replace: false,
transclude: false,
restrict: 'C',
scope: {
'repository': '=repository',
'trigger': '=trigger',
'nextStepCounter': '=nextStepCounter',
'currentStepValid': '=currentStepValid',
'analyze': '&analyze'
},
controller: function($scope, $element, ApiService) {
$scope.analyzeCounter = 0;
$scope.setupReady = false,
$scope.state = {
'gitURL': null,
};
$scope.stepsCompleted = function() {
$scope.analyze({'isValid': $scope.state.gitURL != null});
};
}
};
return directiveDefinitionObject;
});