mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 00:20:07 +00:00
[backport rh-test] Update diffusion_models display to 'Diffusion' in asset browser (#6534)
Backport of #6533 to `rh-test` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6534-backport-rh-test-Update-diffusion_models-display-to-Diffusion-in-asset-browser-29f6d73d36508110915ddd68923a05c4) by [Unito](https://www.unito.io) Co-authored-by: Christian Byrne <cbyrne@comfy.org> Co-authored-by: Christian Byrne <chrbyrne96@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,9 @@ const ACRONYM_TAGS = new Set(['VAE', 'CLIP', 'GLIGEN'])
|
||||
export function formatCategoryLabel(raw?: string): string {
|
||||
if (!raw) return 'Models'
|
||||
|
||||
// Special display name mappings
|
||||
if (raw === 'diffusion_models') return 'Diffusion'
|
||||
|
||||
return raw
|
||||
.split('_')
|
||||
.map((segment) => {
|
||||
|
||||
Reference in New Issue
Block a user