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:
parent
9cc23d5a71
commit
3c96968ee0
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user