triggers-panel: highlight regex and variables in trigger name field

This commit is contained in:
Alexander Zobnin
2017-07-21 16:09:57 +03:00
parent a5bfaed762
commit a3eddb342b
2 changed files with 8 additions and 0 deletions

View File

@@ -55,6 +55,10 @@
placeholder="trigger name"
class="gf-form-input"
ng-style="editor.panel.triggers.trigger.style"
ng-class="{
'zbx-variable': editor.isVariable(editor.panel.triggers.trigger.filter),
'zbx-regex': editor.isRegex(editor.panel.triggers.trigger.filter)
}"
empty-to-null>
</div>
</div>

View File

@@ -55,6 +55,10 @@
placeholder="trigger name"
class="gf-form-input"
ng-style="editor.panel.triggers.trigger.style"
ng-class="{
'zbx-variable': editor.isVariable(editor.panel.triggers.trigger.filter),
'zbx-regex': editor.isRegex(editor.panel.triggers.trigger.filter)
}"
empty-to-null>
</div>
</div>