mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-13 17:26:22 +00:00
fix(models): link primary CTA to /workflows/model/{slug} on comfy.org
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { cn } from '@comfyorg/tailwind-utils'
|
||||
import BrandButton from '../common/BrandButton.vue'
|
||||
import { externalLinks } from '../../config/routes'
|
||||
import { t } from '../../i18n/translations'
|
||||
|
||||
const {
|
||||
slug,
|
||||
displayName,
|
||||
huggingFaceUrl,
|
||||
docsUrl,
|
||||
@@ -12,6 +12,7 @@ const {
|
||||
workflowCount,
|
||||
directory
|
||||
} = defineProps<{
|
||||
slug: string
|
||||
displayName: string
|
||||
huggingFaceUrl: string
|
||||
docsUrl?: string
|
||||
@@ -20,6 +21,8 @@ const {
|
||||
directory: string
|
||||
}>()
|
||||
|
||||
const workflowsUrl = `https://www.comfy.org/workflows/model/${slug}`
|
||||
|
||||
const dirDisplayMap: Record<string, string> = {
|
||||
diffusion_models: 'Diffusion Model',
|
||||
checkpoints: 'Checkpoint',
|
||||
@@ -71,7 +74,7 @@ const isPartnerNode = directory === 'partner_nodes'
|
||||
|
||||
<div class="flex flex-col gap-3 sm:flex-row">
|
||||
<BrandButton
|
||||
:href="externalLinks.workflows"
|
||||
:href="workflowsUrl"
|
||||
variant="solid"
|
||||
size="lg"
|
||||
class="w-full uppercase sm:w-auto sm:min-w-48"
|
||||
|
||||
@@ -120,6 +120,7 @@ const pageDescription = `Run ${displayName} in ComfyUI. ${model.workflowCount} w
|
||||
</Fragment>
|
||||
|
||||
<ModelHeroSection
|
||||
slug={model.slug}
|
||||
displayName={displayName}
|
||||
huggingFaceUrl={model.huggingFaceUrl}
|
||||
docsUrl={model.docsUrl}
|
||||
|
||||
Reference in New Issue
Block a user