Skip to content

Commit

Permalink
fix(core/jenkins): show long choice params on multiple lines in dropd…
Browse files Browse the repository at this point in the history
…own (#5175)
  • Loading branch information
anotherchrisberry authored and Justin Reynolds committed Apr 14, 2018
1 parent 071275f commit da4d1dc
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,17 @@ <h4 class="text-left" >Job Parameters</h4>
<ui-select class="form-control input-sm" ng-if="!useDefaultParameters[parameter.name]" ng-model="userSuppliedParameters[parameter.name]">
<ui-select-match placeholder="Select a choice...">{{$select.selected}}</ui-select-match>
<ui-select-choices repeat="choice in parameter.choices | filter: $select.search track by $index">
<span ng-bind-html="choice | highlight: $select.search"></span>
<div ng-class="{ 'break-word' : !choice.includes(' ')}">
<span ng-bind-html="choice | highlight: $select.search"></span>
</div>
</ui-select-choices>
</ui-select>
<ui-select class="form-control input-sm" ng-disabled="useDefaultParameters[parameter.name]" search-enabled="false" ng-if="useDefaultParameters[parameter.name]" ng-model="parameter.defaultValue">
<ui-select-match placeholder="Select a choice...">{{$select.selected}}</ui-select-match>
<ui-select-choices repeat="choice in parameter.choices | filter: $select.search track by $index">
<span ng-bind-html="choice | highlight: $select.search"></span>
<div ng-class="{ 'break-word' : !choice.includes(' ')}">
<span ng-bind-html="choice | highlight: $select.search"></span>
</div>
</ui-select-choices>
</ui-select>
</div>
Expand Down

0 comments on commit da4d1dc

Please sign in to comment.