diff --git a/awx/ui/client/src/app.js b/awx/ui/client/src/app.js index 1a2f427a85..8d3c38e6e7 100644 --- a/awx/ui/client/src/app.js +++ b/awx/ui/client/src/app.js @@ -206,7 +206,6 @@ var awApp = angular.module('awApp', [ LoadConfig, Store, pendoService, Prompt, Rest, Wait, ProcessErrors, $state, GetBasePath, ConfigService, FeaturesService, $filter, SocketService, AppStrings) { - console.log("This works fine!"); $rootScope.$state = $state; $rootScope.$state.matches = function(stateName) { return $state.current.name.search(stateName) > 0; diff --git a/awx/ui/client/src/inventories-hosts/hosts/related/groups/hosts-related-groups-associate.route.js b/awx/ui/client/src/inventories-hosts/hosts/related/groups/hosts-related-groups-associate.route.js index c1567200d2..9ed6dbfa0b 100644 --- a/awx/ui/client/src/inventories-hosts/hosts/related/groups/hosts-related-groups-associate.route.js +++ b/awx/ui/client/src/inventories-hosts/hosts/related/groups/hosts-related-groups-associate.route.js @@ -26,7 +26,6 @@ export default { onExit: function($state) { if ($state.transition) { $('#associate-groups-modal').modal('hide'); - $('.modal-backdrop').remove(); $('body').removeClass('modal-open'); } }, diff --git a/awx/ui/client/src/inventories-hosts/inventories/related/groups/related/nested-groups/group-nested-groups-associate.route.js b/awx/ui/client/src/inventories-hosts/inventories/related/groups/related/nested-groups/group-nested-groups-associate.route.js index 294dcf031c..6f8f86e860 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/related/groups/related/nested-groups/group-nested-groups-associate.route.js +++ b/awx/ui/client/src/inventories-hosts/inventories/related/groups/related/nested-groups/group-nested-groups-associate.route.js @@ -26,7 +26,6 @@ export default { onExit: function($state) { if ($state.transition) { $('#associate-groups-modal').modal('hide'); - $('.modal-backdrop').remove(); $('body').removeClass('modal-open'); } }, diff --git a/awx/ui/client/src/inventories-hosts/inventories/related/groups/related/nested-hosts/group-nested-hosts-associate.route.js b/awx/ui/client/src/inventories-hosts/inventories/related/groups/related/nested-hosts/group-nested-hosts-associate.route.js index 959055ad02..1d1ad65388 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/related/groups/related/nested-hosts/group-nested-hosts-associate.route.js +++ b/awx/ui/client/src/inventories-hosts/inventories/related/groups/related/nested-hosts/group-nested-hosts-associate.route.js @@ -26,7 +26,6 @@ export default { onExit: function($state) { if ($state.transition) { $('#associate-groups-modal').modal('hide'); - $('.modal-backdrop').remove(); $('body').removeClass('modal-open'); } }, diff --git a/awx/ui/client/src/inventories-hosts/inventories/related/hosts/related/nested-groups/host-nested-groups-associate.route.js b/awx/ui/client/src/inventories-hosts/inventories/related/hosts/related/nested-groups/host-nested-groups-associate.route.js index d17a181687..c710a76754 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/related/hosts/related/nested-groups/host-nested-groups-associate.route.js +++ b/awx/ui/client/src/inventories-hosts/inventories/related/hosts/related/nested-groups/host-nested-groups-associate.route.js @@ -26,7 +26,6 @@ export default { onExit: function($state) { if ($state.transition) { $('#associate-groups-modal').modal('hide'); - $('.modal-backdrop').remove(); $('body').removeClass('modal-open'); } }, diff --git a/awx/ui/client/src/inventories-hosts/shared/associate-groups/associate-groups.controller.js b/awx/ui/client/src/inventories-hosts/shared/associate-groups/associate-groups.controller.js index 7cb16ca60c..bfc4cda17e 100644 --- a/awx/ui/client/src/inventories-hosts/shared/associate-groups/associate-groups.controller.js +++ b/awx/ui/client/src/inventories-hosts/shared/associate-groups/associate-groups.controller.js @@ -94,13 +94,8 @@ $scope.saveFunction({selectedItems: $scope.selectedItems}) .then(() =>{ $scope.closeModal(); - }).catch((error) => { + }).catch(() => { $scope.closeModal(); - ProcessErrors(null, error.data, error.status, null, { - hdr: 'Error!', - msg: 'Failed to associate host to group(s): POST returned status' + - error.status - }); }); }; diff --git a/awx/ui/client/src/inventories-hosts/shared/associate-hosts/associate-hosts.controller.js b/awx/ui/client/src/inventories-hosts/shared/associate-hosts/associate-hosts.controller.js index a5e5f4967a..9a3014afcf 100644 --- a/awx/ui/client/src/inventories-hosts/shared/associate-hosts/associate-hosts.controller.js +++ b/awx/ui/client/src/inventories-hosts/shared/associate-hosts/associate-hosts.controller.js @@ -93,13 +93,8 @@ $scope.saveFunction({selectedItems: $scope.selectedItems}) .then(() =>{ $scope.closeModal(); - }).catch((error) => { + }).catch(() => { $scope.closeModal(); - ProcessErrors(null, error.data, error.status, null, { - hdr: 'Error!', - msg: 'Failed to associate host to host(s): POST returned status' + - error.status - }); }); };