From 2745f832fd6842e321e062fb2e316b267112a5af Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Tue, 9 Jun 2015 12:24:58 +0300 Subject: [PATCH] Add "track by item.name" for metrics selection. --- zabbix/partials/query.editor.html | 8 ++++---- zabbix/queryCtrl.js | 31 ++----------------------------- 2 files changed, 6 insertions(+), 33 deletions(-) diff --git a/zabbix/partials/query.editor.html b/zabbix/partials/query.editor.html index f1985fd..57709fb 100644 --- a/zabbix/partials/query.editor.html +++ b/zabbix/partials/query.editor.html @@ -59,7 +59,7 @@ ng-change="selectHostGroup()" ng-model="target.group" bs-tooltip="target.group.name.length > 25 ? target.group.name : ''" - ng-options="group.visible_name ? group.visible_name : group.name for group in metric.groupList" > + ng-options="group.visible_name ? group.visible_name : group.name for group in metric.groupList track by group.name" > + ng-options="host.visible_name ? host.visible_name : host.name for host in metric.hostList track by host.name" > + ng-options="app.visible_name ? app.visible_name : app.name for app in metric.applicationList track by app.name" > + ng-options="item.name for item in metric.itemList track by item.name" >