diff --git a/zabbix/partials/query.editor.html b/zabbix/partials/query.editor.html
index e7f2916..86dbcc2 100644
--- a/zabbix/partials/query.editor.html
+++ b/zabbix/partials/query.editor.html
@@ -19,11 +19,11 @@
IT Services
+ ng-click="switchEditorMode()">IT Services
Items
+ ng-click="switchEditorMode()">Items
Duplicate
Move up
diff --git a/zabbix/queryCtrl.js b/zabbix/queryCtrl.js
index bca12e5..4fc469e 100644
--- a/zabbix/queryCtrl.js
+++ b/zabbix/queryCtrl.js
@@ -42,6 +42,11 @@ function (angular, _) {
$scope.target.errors = validateTarget($scope.target);
};
+ $scope.switchEditorMode = function() {
+ $scope.target.ITService = !$scope.target.ITService;
+ $scope.init();
+ };
+
/**
* Take alias from item name by default
*/