From c7684f414d8d2b9f4637c7d2d57dfc07fbe36918 Mon Sep 17 00:00:00 2001 From: Divakar Konakalla Date: Wed, 8 Feb 2017 14:48:40 +0530 Subject: [PATCH] Added Default column for all monitors, done required changes to select default monitor everywhere. --- .../popups/blueprintLaunchParamsCtrl.js | 6 ++ .../instance/popups/InstanceImportByIpCtrl.js | 6 ++ .../private/ajax/Settings/ProvidersList.html | 101 ------------------ .../htmls/private/ajax/Settings/chefSync.html | 3 +- .../ajax/Settings/monitoringServer.html | 58 +++++++++- 5 files changed, 70 insertions(+), 104 deletions(-) diff --git a/client/cat3/src/partials/sections/dashboard/workzone/blueprint/popups/blueprintLaunchParamsCtrl.js b/client/cat3/src/partials/sections/dashboard/workzone/blueprint/popups/blueprintLaunchParamsCtrl.js index ce0b302dd..d12a574f1 100644 --- a/client/cat3/src/partials/sections/dashboard/workzone/blueprint/popups/blueprintLaunchParamsCtrl.js +++ b/client/cat3/src/partials/sections/dashboard/workzone/blueprint/popups/blueprintLaunchParamsCtrl.js @@ -30,6 +30,12 @@ $scope.getMonitorList = function(orgId) { workzoneServices.getMonitorList(orgId).then(function (response) { $scope.monitorList = response.data; + for(var i=0; i<$scope.monitorList.length; i++){ + if($scope.monitorList[i].isDefault){ + $scope.monitorId = $scope.monitorList[i]._id; + break; + } + } }); }; genericServices.getTreeNew().then(function (envData) { diff --git a/client/cat3/src/partials/sections/dashboard/workzone/instance/popups/InstanceImportByIpCtrl.js b/client/cat3/src/partials/sections/dashboard/workzone/instance/popups/InstanceImportByIpCtrl.js index 5ce3faf27..1172d5354 100644 --- a/client/cat3/src/partials/sections/dashboard/workzone/instance/popups/InstanceImportByIpCtrl.js +++ b/client/cat3/src/partials/sections/dashboard/workzone/instance/popups/InstanceImportByIpCtrl.js @@ -28,6 +28,12 @@ var p = workzoneEnvironment.getEnvParams(); workzoneServices.getMonitorList(p.org).then(function (response) { $scope.monitorList = response.data; + for(var i=0; i<$scope.monitorList.length; i++){ + if($scope.monitorList[i].isDefault){ + $scope.monitorId = $scope.monitorList[i]._id; + break; + } + } }); $scope.tagServerChecking = function() { if($scope.tagServerCheck){ diff --git a/client/htmls/private/ajax/Settings/ProvidersList.html b/client/htmls/private/ajax/Settings/ProvidersList.html index bc6351dc6..86f8690b0 100755 --- a/client/htmls/private/ajax/Settings/ProvidersList.html +++ b/client/htmls/private/ajax/Settings/ProvidersList.html @@ -49,9 +49,6 @@
- - - @@ -103,89 +100,6 @@
- - \ No newline at end of file + + \ No newline at end of file