mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 08:37:48 -02:30
consider org id in url an int
This commit is contained in:
@@ -131,7 +131,7 @@ export default ['$stateParams', '$scope', '$rootScope', '$location',
|
|||||||
if (editing_organization_id === undefined) {
|
if (editing_organization_id === undefined) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (deleted_organization_id == editing_organization_id) {
|
if (deleted_organization_id === editing_organization_id) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@@ -147,7 +147,7 @@ export default ['$stateParams', '$scope', '$rootScope', '$location',
|
|||||||
Rest.destroy()
|
Rest.destroy()
|
||||||
.success(function() {
|
.success(function() {
|
||||||
Wait('stop');
|
Wait('stop');
|
||||||
if (isDeletedOrganizationBeingEdited(id, $stateParams.organization_id) === true) {
|
if (isDeletedOrganizationBeingEdited(id, parseInt($stateParams.organization_id)) === true) {
|
||||||
$state.go('^', null, { reload: true });
|
$state.go('^', null, { reload: true });
|
||||||
} else {
|
} else {
|
||||||
$state.reload('organizations');
|
$state.reload('organizations');
|
||||||
|
|||||||
Reference in New Issue
Block a user