mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Merge pull request #65 from mabashian/7294-group-circular-association
Show api errors when attempting circular association
This commit is contained in:
commit
41f69eeb56
@ -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;
|
||||
|
||||
@ -26,7 +26,6 @@ export default {
|
||||
onExit: function($state) {
|
||||
if ($state.transition) {
|
||||
$('#associate-groups-modal').modal('hide');
|
||||
$('.modal-backdrop').remove();
|
||||
$('body').removeClass('modal-open');
|
||||
}
|
||||
},
|
||||
|
||||
@ -26,7 +26,6 @@ export default {
|
||||
onExit: function($state) {
|
||||
if ($state.transition) {
|
||||
$('#associate-groups-modal').modal('hide');
|
||||
$('.modal-backdrop').remove();
|
||||
$('body').removeClass('modal-open');
|
||||
}
|
||||
},
|
||||
|
||||
@ -26,7 +26,6 @@ export default {
|
||||
onExit: function($state) {
|
||||
if ($state.transition) {
|
||||
$('#associate-groups-modal').modal('hide');
|
||||
$('.modal-backdrop').remove();
|
||||
$('body').removeClass('modal-open');
|
||||
}
|
||||
},
|
||||
|
||||
@ -26,7 +26,6 @@ export default {
|
||||
onExit: function($state) {
|
||||
if ($state.transition) {
|
||||
$('#associate-groups-modal').modal('hide');
|
||||
$('.modal-backdrop').remove();
|
||||
$('body').removeClass('modal-open');
|
||||
}
|
||||
},
|
||||
|
||||
@ -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
|
||||
});
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
@ -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
|
||||
});
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user