Add placeholder for regex field in create event control

This commit is contained in:
Joseph Schorr 2016-09-14 17:07:14 -04:00
parent 03d4445a02
commit 9140b0e41d
2 changed files with 2 additions and 0 deletions

View file

@ -40,6 +40,7 @@
<!-- Regular expression -->
<input type="text" class="form-control" ng-model="currentConfig[field.name]" ng-switch-when="regex"
placeholder="{{ field.placeholder || '' }}"
ng-required="!field.optional">
<!-- Value description -->

View file

@ -29,6 +29,7 @@ function(Config, Features, VulnerabilityService) {
'help_text': 'An optional regular expression for matching the git branch or tag ' +
'git ref. If left blank, the notification will fire for all builds.',
'optional': true,
'placeholder': '(refs/heads/somebranch)|(refs/tags/sometag)'
}
]
},