mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
[backport cloud/1.35] fix: pricing table links to wrong page in docs (p2) (#7609)
Backport of #7434 to `cloud/1.35` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7609-backport-cloud-1-35-fix-pricing-table-links-to-wrong-page-in-docs-p2-2cd6d73d36508139993edeb721f0ecfa) by [Unito](https://www.unito.io) Co-authored-by: Christian Byrne <cbyrne@comfy.org>
This commit is contained in:
@@ -139,7 +139,7 @@ interface CreditHistoryItemData {
|
|||||||
isPositive: boolean
|
isPositive: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const { buildDocsUrl } = useExternalLink()
|
const { buildDocsUrl, docsPaths } = useExternalLink()
|
||||||
const dialogService = useDialogService()
|
const dialogService = useDialogService()
|
||||||
const authStore = useFirebaseAuthStore()
|
const authStore = useFirebaseAuthStore()
|
||||||
const authActions = useFirebaseAuthActions()
|
const authActions = useFirebaseAuthActions()
|
||||||
@@ -194,9 +194,7 @@ const handleFaqClick = () => {
|
|||||||
|
|
||||||
const handleOpenPartnerNodesInfo = () => {
|
const handleOpenPartnerNodesInfo = () => {
|
||||||
window.open(
|
window.open(
|
||||||
buildDocsUrl('/tutorials/api-nodes/overview#api-nodes', {
|
buildDocsUrl(docsPaths.partnerNodesPricing, { includeLocale: true }),
|
||||||
includeLocale: true
|
|
||||||
}),
|
|
||||||
'_blank'
|
'_blank'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,7 +131,10 @@ vi.mock('@/base/credits/comfyCredits', () => ({
|
|||||||
// Mock useExternalLink
|
// Mock useExternalLink
|
||||||
vi.mock('@/composables/useExternalLink', () => ({
|
vi.mock('@/composables/useExternalLink', () => ({
|
||||||
useExternalLink: vi.fn(() => ({
|
useExternalLink: vi.fn(() => ({
|
||||||
buildDocsUrl: vi.fn((path) => `https://docs.comfy.org${path}`)
|
buildDocsUrl: vi.fn((path) => `https://docs.comfy.org${path}`),
|
||||||
|
docsPaths: {
|
||||||
|
partnerNodesPricing: '/tutorials/partner-nodes/pricing'
|
||||||
|
}
|
||||||
}))
|
}))
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ const emit = defineEmits<{
|
|||||||
close: []
|
close: []
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const { buildDocsUrl } = useExternalLink()
|
const { buildDocsUrl, docsPaths } = useExternalLink()
|
||||||
|
|
||||||
const { userDisplayName, userEmail, userPhotoUrl, handleSignOut } =
|
const { userDisplayName, userEmail, userPhotoUrl, handleSignOut } =
|
||||||
useCurrentUser()
|
useCurrentUser()
|
||||||
@@ -224,9 +224,7 @@ const handleTopUp = () => {
|
|||||||
|
|
||||||
const handleOpenPartnerNodesInfo = () => {
|
const handleOpenPartnerNodesInfo = () => {
|
||||||
window.open(
|
window.open(
|
||||||
buildDocsUrl('/tutorials/partner-nodes/pricing', {
|
buildDocsUrl(docsPaths.partnerNodesPricing, { includeLocale: true }),
|
||||||
includeLocale: true
|
|
||||||
}),
|
|
||||||
'_blank'
|
'_blank'
|
||||||
)
|
)
|
||||||
emit('close')
|
emit('close')
|
||||||
|
|||||||
@@ -92,8 +92,14 @@ export function useExternalLink() {
|
|||||||
comfyOrg: 'https://www.comfy.org/'
|
comfyOrg: 'https://www.comfy.org/'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Common doc paths for use with buildDocsUrl */
|
||||||
|
const docsPaths = {
|
||||||
|
partnerNodesPricing: '/tutorials/partner-nodes/pricing'
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
buildDocsUrl,
|
buildDocsUrl,
|
||||||
staticUrls
|
staticUrls,
|
||||||
|
docsPaths
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -378,7 +378,7 @@ type TierKey = (typeof TIER_TO_I18N_KEY)[SubscriptionTier]
|
|||||||
|
|
||||||
const DEFAULT_TIER_KEY: TierKey = 'standard'
|
const DEFAULT_TIER_KEY: TierKey = 'standard'
|
||||||
|
|
||||||
const { buildDocsUrl } = useExternalLink()
|
const { buildDocsUrl, docsPaths } = useExternalLink()
|
||||||
const authActions = useFirebaseAuthActions()
|
const authActions = useFirebaseAuthActions()
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
@@ -469,9 +469,7 @@ const {
|
|||||||
|
|
||||||
const handleOpenPartnerNodesInfo = () => {
|
const handleOpenPartnerNodesInfo = () => {
|
||||||
window.open(
|
window.open(
|
||||||
buildDocsUrl('/tutorials/api-nodes/overview#api-nodes', {
|
buildDocsUrl(docsPaths.partnerNodesPricing, { includeLocale: true }),
|
||||||
includeLocale: true
|
|
||||||
}),
|
|
||||||
'_blank'
|
'_blank'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user