cloud: fix credits tooltips (#6655)

Moves the refresh button's tooltip to the monthy bonus tooltip (correct,
intended tooltip assignments).

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6655-cloud-fix-credits-tooltips-2a86d73d365081b585ecf19af574a10a)
by [Unito](https://www.unito.io)
This commit is contained in:
Christian Byrne
2025-11-11 16:45:13 -08:00
committed by GitHub
parent 1f78b59afc
commit d14c416cc4
4 changed files with 21 additions and 10 deletions

View File

@@ -95,7 +95,6 @@
"
>
<Button
v-tooltip="refreshTooltip"
icon="pi pi-sync"
text
size="small"
@@ -142,7 +141,7 @@
{{ $t('subscription.monthlyBonusDescription') }}
</div>
<Button
v-tooltip="$t('subscription.monthlyCreditsRollover')"
v-tooltip="refreshTooltip"
icon="pi pi-question-circle"
text
rounded

View File

@@ -8,6 +8,8 @@ import { useTelemetry } from '@/platform/telemetry'
import { useDialogService } from '@/services/dialogService'
import { useCommandStore } from '@/stores/commandStore'
const MONTHLY_CREDIT_BONUS_USD = 10
/**
* Composable for handling subscription panel actions and loading states
*/
@@ -24,7 +26,10 @@ export function useSubscriptionActions() {
const refreshTooltip = computed(() => {
const date =
formattedRenewalDate.value || t('subscription.nextBillingCycle')
return `Refreshes on ${date}`
return t('subscription.refreshesOn', {
monthlyCreditBonusUsd: MONTHLY_CREDIT_BONUS_USD,
date
})
})
onMounted(() => {