Bookmark nodes in node library (#612)

* Basic bookmark

* Extract node leaf as component

* bigger hitbox
This commit is contained in:
Chenlei Hu
2024-08-24 10:39:18 -04:00
committed by GitHub
parent f2b02dd10b
commit a2143d9120
5 changed files with 156 additions and 28 deletions

View File

@@ -191,6 +191,15 @@ export const useSettingStore = defineStore('setting', {
step: 0.01
}
})
// Bookmarks are stored in the settings store.
// Bookmarks are in format of category/display_name. e.g. "conditioning/CLIPTextEncode"
app.ui.settings.addSetting({
id: 'Comfy.NodeLibrary.Bookmarks',
name: 'Node library bookmarks',
type: 'hidden',
defaultValue: []
})
},
set<K extends keyof Settings>(key: K, value: Settings[K]) {