1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

Add link to organization inventory list

This commit is contained in:
Marliana Lara 2019-07-29 12:36:30 -04:00
parent 9cc23d5a71
commit 3c96968ee0
No known key found for this signature in database
GPG Key ID: 38C73B40DFA809EE

View File

@ -68,6 +68,7 @@ export default ['$scope', '$rootScope', '$location',
} }
item.kind_label = item.kind === '' ? i18n._('Inventory') : (item.kind === 'smart' ? i18n._('Smart Inventory'): i18n._('Inventory')); item.kind_label = item.kind === '' ? i18n._('Inventory') : (item.kind === 'smart' ? i18n._('Smart Inventory'): i18n._('Inventory'));
item.linkToDetails = (item.kind && item.kind === 'smart') ? `inventories.editSmartInventory({smartinventory_id:${item.id}})` : `inventories.edit({inventory_id:${item.id}})`;
return item; return item;
} }