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

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.linkToDetails = (item.kind && item.kind === 'smart') ? `inventories.editSmartInventory({smartinventory_id:${item.id}})` : `inventories.edit({inventory_id:${item.id}})`;
return item;
}