File tree 2 files changed +3
-18
lines changed
2 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 204
204
"text" : " Create your own dashboard to get the most out of beaconcha.in"
205
205
},
206
206
"subsciprion_limit_reached" : {
207
- "_link" : " Upgrade your subscription or get an add-on ." ,
208
- "template" : " This dashboard exceeds your maximum stake limit, so you can't add more validators. {_link}"
207
+ "_link" : " Learn more about our subscription plans and dashboard addon-ons on our pricing page ." ,
208
+ "template" : " This dashboard exceeds the stake limit so no more validators can be added . {_link}"
209
209
},
210
210
"subsciprion_limit_reached_title" : " Maximum stake exceeded" ,
211
211
"table" : {
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import type { TableQueryParams } from '~/types/datatable'
12
12
13
13
const {
14
14
isLoggedIn,
15
- premium_perks,
16
15
} = useUserStore ()
17
16
const showInDevelopment = Boolean (useRuntimeConfig ().public .showInDevelopment )
18
17
const { t : $t } = useTranslation ()
@@ -95,24 +94,10 @@ const {
95
94
96
95
const {
97
96
getProducts,
98
- premiumProducts,
99
97
} = useProductsStore ()
100
98
101
99
await useAsyncData (' get_products' , () => getProducts ())
102
100
103
- const hasReachedLimit = computed (() => {
104
- const latestEffectiveBalance = overview .value ?.balances .effective_latest
105
- const freeProduct = premiumProducts .value [' Free' ]
106
- const effectiveBalanceLimitFreeProduct = freeProduct ?.premium_perks .effective_balance_per_dashboard
107
- const effectiveBalancePerDashboard = premium_perks .value ?.effective_balance_per_dashboard
108
- || effectiveBalanceLimitFreeProduct
109
-
110
- if (! latestEffectiveBalance || ! effectiveBalancePerDashboard ) {
111
- return false
112
- }
113
- return isGreaterEquals (latestEffectiveBalance , effectiveBalancePerDashboard )
114
- })
115
-
116
101
await useAsyncData (' user_dashboards' , () => refreshDashboards (), { watch: [ isLoggedIn ] })
117
102
118
103
const { error : validatorOverviewError } = await useAsyncData (
@@ -382,7 +367,7 @@ watch(
382
367
<BcPageWrapper >
383
368
<template #banner >
384
369
<BcNotificationBanner
385
- v-if =" hasReachedLimit "
370
+ v-if =" overview?.is_above_effective_balance_limit "
386
371
:title =" $t('dashboard.subsciprion_limit_reached_title')"
387
372
>
388
373
<BcTranslation
You can’t perform that action at this time.
0 commit comments