From 3c96968ee0c6248d3fb8e7d77bb1f3c0bbae642f Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Mon, 29 Jul 2019 12:36:30 -0400 Subject: [PATCH] Add link to organization inventory list --- .../linkout/controllers/organizations-inventories.controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/ui/client/src/organizations/linkout/controllers/organizations-inventories.controller.js b/awx/ui/client/src/organizations/linkout/controllers/organizations-inventories.controller.js index ccc01e859c05..cf19755e77e6 100644 --- a/awx/ui/client/src/organizations/linkout/controllers/organizations-inventories.controller.js +++ b/awx/ui/client/src/organizations/linkout/controllers/organizations-inventories.controller.js @@ -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.linkToDetails = (item.kind && item.kind === 'smart') ? `inventories.editSmartInventory({smartinventory_id:${item.id}})` : `inventories.edit({inventory_id:${item.id}})`; return item; }