[backport rh-test] cloud: fix credits tooltips (#6658)

Backport of #6655 to `rh-test`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6658-backport-rh-test-cloud-fix-credits-tooltips-2a96d73d365081f6aa28ef959cada111)
by [Unito](https://www.unito.io)

Co-authored-by: Christian Byrne <cbyrne@comfy.org>
This commit is contained in:
Comfy Org PR Bot
2025-11-12 10:34:21 +09:00
committed by GitHub
parent 299ddbf3c0
commit 5bd2a098e2
4 changed files with 21 additions and 10 deletions

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(() => {