From 9c0b6eff3fb1cc0be073828bd935056de0571e28 Mon Sep 17 00:00:00 2001 From: alter-eggo Date: Tue, 26 Sep 2023 13:17:41 +0400 Subject: [PATCH] feat: remove stake action if pool is not stakable --- .../tables/PoolsTable/PoolsTableActionSelector.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/tables/PoolsTable/PoolsTableActionSelector.vue b/src/components/tables/PoolsTable/PoolsTableActionSelector.vue index fe841f7de7..6760a15778 100644 --- a/src/components/tables/PoolsTable/PoolsTableActionSelector.vue +++ b/src/components/tables/PoolsTable/PoolsTableActionSelector.vue @@ -59,7 +59,15 @@ function isActionDisabled(action: PoolAction) { PoolAction.Stake, PoolAction.MigrateGauge, ]; - return isDeprecated && actionsToDisable.includes(action); + + const isStakablePool = + POOLS.Stakable.VotingGaugePools.includes(props.pool.id) || + POOLS.Stakable.AllowList.includes(props.pool.id); + + return ( + (isDeprecated && actionsToDisable.includes(action)) || + (!isStakablePool && action === PoolAction.Stake) + ); } const menuItems = computed(() => {