mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
## Summary <!-- One sentence describing what changed and why. --> ## Changes - **What**: <!-- Core functionality added/modified --> - **Breaking**: <!-- Any breaking changes (if none, remove this line) --> - **Dependencies**: <!-- New dependencies (if none, remove this line) --> ## Review Focus <!-- Critical design decisions or edge cases that need attention --> <!-- If this PR fixes an issue, uncomment and update the line below --> <!-- Fixes #ISSUE_NUMBER --> ## Screenshots (if applicable) <!-- Add screenshots or video recording to help explain your changes --> ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6043-Comfy-Cloud-Badge-indicator-28b6d73d365081b8b549ecc3beb2c132) by [Unito](https://www.unito.io)
16 lines
407 B
TypeScript
16 lines
407 B
TypeScript
import { isProductionEnvironment } from '@/config/environment'
|
|
import { useExtensionService } from '@/services/extensionService'
|
|
|
|
useExtensionService().registerExtension({
|
|
name: 'Comfy.CloudBadge',
|
|
// Only show badge when running in cloud environment
|
|
topbarBadges: isProductionEnvironment()
|
|
? [
|
|
{
|
|
label: 'BETA',
|
|
text: 'Comfy Cloud'
|
|
}
|
|
]
|
|
: undefined
|
|
})
|