Fix #7 issue.
This commit is contained in:
@@ -65,7 +65,7 @@ function (angular, _) {
|
|||||||
|
|
||||||
// Call when host selected
|
// Call when host selected
|
||||||
$scope.selectHost = function() {
|
$scope.selectHost = function() {
|
||||||
|
if ($scope.target.host) {
|
||||||
// Update item list
|
// Update item list
|
||||||
if ($scope.target.application) {
|
if ($scope.target.application) {
|
||||||
$scope.updateItemList($scope.target.host.hostid, $scope.target.application.applicationid);
|
$scope.updateItemList($scope.target.host.hostid, $scope.target.application.applicationid);
|
||||||
@@ -75,6 +75,7 @@ function (angular, _) {
|
|||||||
|
|
||||||
// Update application list
|
// Update application list
|
||||||
$scope.updateAppList($scope.target.host.hostid);
|
$scope.updateAppList($scope.target.host.hostid);
|
||||||
|
}
|
||||||
|
|
||||||
$scope.target.errors = validateTarget($scope.target);
|
$scope.target.errors = validateTarget($scope.target);
|
||||||
if (!_.isEqual($scope.oldTarget, $scope.target) && _.isEmpty($scope.target.errors)) {
|
if (!_.isEqual($scope.oldTarget, $scope.target) && _.isEmpty($scope.target.errors)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user