diff --git a/src/components/searchbox/NodeSearchItem.vue b/src/components/searchbox/NodeSearchItem.vue index 01360731c..f5d5a200f 100644 --- a/src/components/searchbox/NodeSearchItem.vue +++ b/src/components/searchbox/NodeSearchItem.vue @@ -4,6 +4,9 @@ >
+ + + @@ -45,6 +48,7 @@ import { ComfyNodeDefImpl } from '@/stores/nodeDefStore' import { highlightQuery } from '@/utils/formatUtil' import { computed } from 'vue' import { useSettingStore } from '@/stores/settingStore' +import { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore' const settingStore = useSettingStore() const showCategory = computed(() => @@ -54,7 +58,12 @@ const showIdName = computed(() => settingStore.get('Comfy.NodeSearchBoxImpl.ShowIdName') ) -defineProps<{ +const nodeBookmarkStore = useNodeBookmarkStore() +const isBookmarked = computed(() => + nodeBookmarkStore.isBookmarked(props.nodeDef) +) + +const props = defineProps<{ nodeDef: ComfyNodeDefImpl currentQuery: string }>()