From 118ecfdd4077f5e25de942a29c6c90e28ee5f9b0 Mon Sep 17 00:00:00 2001 From: alter-eggo Date: Tue, 12 Sep 2023 08:10:43 +0400 Subject: [PATCH] hotfix: remove stake and migrate actions for branded redirect pools --- src/components/tables/PoolsTable/PoolsTableActionSelector.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/tables/PoolsTable/PoolsTableActionSelector.vue b/src/components/tables/PoolsTable/PoolsTableActionSelector.vue index a4d3e13253..fe841f7de7 100644 --- a/src/components/tables/PoolsTable/PoolsTableActionSelector.vue +++ b/src/components/tables/PoolsTable/PoolsTableActionSelector.vue @@ -9,6 +9,7 @@ import { import { PoolWarning } from '@/types/pools'; import { usePoolWarning } from '@/composables/usePoolWarning'; import { useDisabledJoinPool } from '@/composables/useDisabledJoinPool'; +import { POOLS } from '@/constants/pools'; type Props = { pool: Pool; @@ -50,7 +51,8 @@ function isActionDisabled(action: PoolAction) { Boolean(deprecatedDetails(props.pool.id)) || isAffectedBy(PoolWarning.PoolProtocolFeeVulnWarning) || isJoinsDisabled(props.pool.id) || - shouldDisableJoins.value; + shouldDisableJoins.value || + POOLS.BrandedRedirect?.[props.pool.poolType]; const actionsToDisable = [ PoolAction.Add,