Mock settingStore (#845)

This commit is contained in:
Chenlei Hu
2024-09-16 16:25:32 +09:00
committed by GitHub
parent 74fa4a2c2d
commit 091b8a74fb
4 changed files with 38 additions and 27 deletions

View File

@@ -84,10 +84,6 @@ class NodeBadgeExtension implements ComfyExtension {
) {}
init(app: ComfyApp) {
if (!app.vueAppReady) {
return
}
const settingStore = useSettingStore()
this.nodeSourceBadgeMode = computed(
() =>
@@ -119,10 +115,6 @@ class NodeBadgeExtension implements ComfyExtension {
}
nodeCreated(node: ComfyLGraphNode, app: ComfyApp) {
if (!app.vueAppReady) {
return
}
node.badgePosition = BadgePosition.TopRight
// @ts-expect-error Disable ComfyUI-Manager's badge drawing by setting badge_enabled to true. Remove this when ComfyUI-Manager's badge drawing is removed.
node.badge_enabled = true