Skip to content

Commit

Permalink
Merge pull request #486 from gobitfly/BIDS-3138/RemoveTextForGuppy
Browse files Browse the repository at this point in the history
Remove "per dashboard" on guppy
  • Loading branch information
D13ce authored Jun 17, 2024
2 parents a488f80 + 8d69a3b commit bf73736
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/components/pricing/PremiumProductBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,17 @@ const planButton = computed(() => {
})
const mainFeatures = computed<Feature[]>(() => {
const validatorPerDashboardAmount = formatNumber(props.product?.premium_perks.validators_per_dashboard)
return [
{
name: $t('pricing.premium_product.validator_dashboards', { amount: formatNumber(props.product?.premium_perks.validator_dashboards) }, (props.product?.premium_perks.validator_dashboards || 0) <= 1 ? 1 : 2),
available: true,
percentage: percentages.value.validatorDashboards
},
{
name: $t('pricing.premium_product.validators_per_dashboard', { amount: formatNumber(props.product?.premium_perks.validators_per_dashboard) }),
name: props.product.premium_perks.validator_dashboards === 1
? $t('pricing.premium_product.validators', { amount: validatorPerDashboardAmount })
: $t('pricing.premium_product.validators_per_dashboard', { amount: validatorPerDashboardAmount }),
subtext: $t('pricing.per_validator', { amount: prices.value.perValidator }),
available: true,
tooltip: $t('pricing.pectra_tooltip', { effectiveBalance: formatNumber(props.product?.premium_perks.validators_per_dashboard * 32) }),
Expand Down
1 change: 1 addition & 0 deletions frontend/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,7 @@
"premium_product": {
"popular": "Popular!",
"validator_dashboards": "{amount} Validator Dashboard | {amount} Validator Dashboards",
"validators": "{amount} Validators",
"validators_per_dashboard": "{amount} Validators per Dashboard",
"timeframe_dashboard_chart": "{timeframe} dashboard chart history",
"timeframe_heatmap_chart": "{timeframe} heatmap chart history",
Expand Down

0 comments on commit bf73736

Please sign in to comment.