iss #19 - Reinitialize query editor when mode switched to IT services.

This commit is contained in:
Alexander Zobnin
2015-07-25 17:17:22 +03:00
parent 0202949c2d
commit 53d6b60e6f
2 changed files with 7 additions and 2 deletions

View File

@@ -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
*/