Merge pull request #2078 from coreos-inc/build-notification-filter
Fix build notification ref filtering setup in UI
This commit is contained in:
commit
a544dc90eb
2 changed files with 8 additions and 2 deletions
|
@ -41,7 +41,7 @@
|
||||||
<!-- Regular expression -->
|
<!-- Regular expression -->
|
||||||
<div ng-switch-when="regex">
|
<div ng-switch-when="regex">
|
||||||
<div class="regex-editor" placeholder="{{field.placeholder || '' }}"
|
<div class="regex-editor" placeholder="{{field.placeholder || '' }}"
|
||||||
binding="currentConfig[field.name]" optional="field.optional"></div>
|
binding="currentEventConfig[field.name]" optional="field.optional"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Value description -->
|
<!-- Value description -->
|
||||||
|
|
|
@ -46,12 +46,18 @@
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<ul class="notification-event-fields" ng-if="getEventInfo(notification).fields.length">
|
<ul class="notification-event-fields" ng-if="getEventInfo(notification).fields.length">
|
||||||
<li ng-repeat="field in getEventInfo(notification).fields">
|
<li ng-repeat="field in getEventInfo(notification).fields" ng-if="notification.event_config[field.name]">
|
||||||
{{ field.title }}:
|
{{ field.title }}:
|
||||||
<span ng-switch on="field.type">
|
<span ng-switch on="field.type">
|
||||||
<span ng-switch-when="enum">
|
<span ng-switch-when="enum">
|
||||||
{{ findEnumValue(field.values, notification.event_config[field.name]).title }}
|
{{ findEnumValue(field.values, notification.event_config[field.name]).title }}
|
||||||
</span>
|
</span>
|
||||||
|
<code ng-switch-when="regex">
|
||||||
|
{{ notification.event_config[field.name] }}
|
||||||
|
</code>
|
||||||
|
<span ng-switch-default>
|
||||||
|
{{ notification.event_config[field.name] }}
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Reference in a new issue