Skip to content

Commit

Permalink
refactor(inventorySubscriptions): ent-4366 disable subscriptions (#825)
Browse files Browse the repository at this point in the history
* dotenv, disable subs for rhosak release priority
* productViews, dotenv param checks for subs display
  • Loading branch information
cdcabrera authored Nov 9, 2021
1 parent 392f172 commit e684a9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
REACT_APP_ENV=production
REACT_APP_UI_VERSION=${UI_VERSION}

REACT_APP_UI_DISABLED_TOOLBAR=false
REACT_APP_UI_DISABLED_TABLE_HOSTS=true
4 changes: 2 additions & 2 deletions src/components/productView/productView.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const ProductView = ({ t, toolbarGraph, toolbarGraphDescription, useRouteDetail:
(!initialInventoryFilters && !initialSubscriptionsInventoryFilters) || helpers.UI_DISABLED_TABLE
}
>
{initialInventoryFilters && (
{!helpers.UI_DISABLED_TABLE_HOSTS && initialInventoryFilters && (
<InventoryTab
key={`inventory_hosts_${productId}`}
title={t('curiosity-inventory.tabHosts', { context: ['noInstances', productId] })}
Expand All @@ -137,7 +137,7 @@ const ProductView = ({ t, toolbarGraph, toolbarGraphDescription, useRouteDetail:
/>
</InventoryTab>
)}
{initialSubscriptionsInventoryFilters && (
{!helpers.UI_DISABLED_TABLE_SUBSCRIPTIONS && initialSubscriptionsInventoryFilters && (
<InventoryTab
key={`inventory_subs_${productId}`}
title={t('curiosity-inventory.tabSubscriptions', { context: productId })}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const ProductViewOpenShiftContainer = ({ t, useRouteDetail: useAliasRouteDetail
viewId={viewId}
/>
</InventoryTab>
{initialSubscriptionsInventoryFilters && (
{!helpers.UI_DISABLED_TABLE_SUBSCRIPTIONS && initialSubscriptionsInventoryFilters && (
<InventoryTab
key={`inventory_subs_${productId}`}
title={t('curiosity-inventory.tabSubscriptions', { context: productId })}
Expand Down

0 comments on commit e684a9f

Please sign in to comment.