1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

Fixed adhoc routing

This commit is contained in:
mabashian 2017-08-02 16:05:40 -04:00
parent e3f0246f4c
commit 700d4c3c5b
4 changed files with 9 additions and 4 deletions

View File

@ -179,7 +179,7 @@
return item.name;
}).value().join(':');
$state.go('^.adhoc', {pattern: pattern});
$state.go('inventories.edit.adhoc', {pattern: pattern});
};
}];

View File

@ -154,7 +154,7 @@
return item.name;
}).value().join(':');
$state.go('^.^.^.adhoc', {pattern: pattern});
$state.go('inventories.edit.adhoc', {pattern: pattern});
};
}];

View File

@ -168,6 +168,6 @@ export default ['$scope', 'NestedHostsListDefinition', '$rootScope', 'GetBasePat
return item.name;
}).value().join(':');
$state.go('^.^.^.adhoc', {pattern: pattern});
$state.go('inventories.edit.adhoc', {pattern: pattern});
};
}];

View File

@ -160,6 +160,11 @@ export default ['$scope', 'ListDefinition', '$rootScope', 'GetBasePath',
return item.name;
}).value().join(':');
$state.go('^.adhoc', {pattern: pattern});
if($state.includes('inventories.edit')) {
$state.go('inventories.edit.adhoc', {pattern: pattern});
}
else if($state.includes('inventories.editSmartInventory')) {
$state.go('inventories.editSmartInventory.adhoc', {pattern: pattern});
}
};
}];