Add tag filter by click at trigger tag icon, #487

This commit is contained in:
Alexander Zobnin
2017-12-16 14:39:53 +03:00
parent 401ad69687
commit b7dab30a74
5 changed files with 36 additions and 3 deletions

View File

@@ -18,7 +18,8 @@
</span>
<span class="zbx-trigger-tags" ng-if="ctrl.panel.showTags && trigger.tags">
<span ng-repeat="tag in trigger.tags" tag-color-from-name="tag.tag+tag.value" class="label label-tag zbx-tag">
<span ng-repeat="tag in trigger.tags" ng-click="ctrl.addTagFilter(tag, trigger.datasource)"
tag-color-from-name="tag.tag+tag.value" class="label label-tag zbx-tag">
{{tag.tag}}: {{tag.value}}
</span>
</span>