Add placeholder for regex field in create event control
This commit is contained in:
parent
03d4445a02
commit
9140b0e41d
2 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,7 @@
|
||||||
|
|
||||||
<!-- Regular expression -->
|
<!-- Regular expression -->
|
||||||
<input type="text" class="form-control" ng-model="currentConfig[field.name]" ng-switch-when="regex"
|
<input type="text" class="form-control" ng-model="currentConfig[field.name]" ng-switch-when="regex"
|
||||||
|
placeholder="{{ field.placeholder || '' }}"
|
||||||
ng-required="!field.optional">
|
ng-required="!field.optional">
|
||||||
|
|
||||||
<!-- Value description -->
|
<!-- Value description -->
|
||||||
|
|
|
@ -29,6 +29,7 @@ function(Config, Features, VulnerabilityService) {
|
||||||
'help_text': 'An optional regular expression for matching the git branch or tag ' +
|
'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.',
|
'git ref. If left blank, the notification will fire for all builds.',
|
||||||
'optional': true,
|
'optional': true,
|
||||||
|
'placeholder': '(refs/heads/somebranch)|(refs/tags/sometag)'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Reference in a new issue