Merge pull request #2685 from alecmerdler/sentry-286610017
Fix Infinite $digest Cycle on Manual Build Trigger Modal
This commit is contained in:
commit
6321d08024
2 changed files with 1 additions and 5 deletions
|
@ -45,7 +45,7 @@
|
||||||
<!-- Regex -->
|
<!-- Regex -->
|
||||||
<div ng-switch-when="regex">
|
<div ng-switch-when="regex">
|
||||||
<input type="text" class="form-control" ng-model="parameters[field.name]"
|
<input type="text" class="form-control" ng-model="parameters[field.name]"
|
||||||
ng-pattern="getPattern(field)"
|
ng-pattern="field.regex"
|
||||||
placeholder="{{ field.placeholder }}"
|
placeholder="{{ field.placeholder }}"
|
||||||
ng-name="field.name"
|
ng-name="field.name"
|
||||||
id="{{ field.name }}"
|
id="{{ field.name }}"
|
||||||
|
|
|
@ -34,10 +34,6 @@ angular.module('quay').directive('manualTriggerBuildDialog', function () {
|
||||||
}, ApiService.errorDisplay('Could not start build'));
|
}, ApiService.errorDisplay('Could not start build'));
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.getPattern = function(field) {
|
|
||||||
return new RegExp(field.regex);
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.show = function() {
|
$scope.show = function() {
|
||||||
$scope.parameters = {};
|
$scope.parameters = {};
|
||||||
$scope.fieldOptions = {};
|
$scope.fieldOptions = {};
|
||||||
|
|
Reference in a new issue