Show node id name in node searchbox (#703)

* Show node unique name in node searchbox

* nit
This commit is contained in:
Chenlei Hu
2024-09-01 18:12:27 -04:00
committed by GitHub
parent 14da8433f7
commit a4a298924e
2 changed files with 21 additions and 3 deletions

View File

@@ -44,9 +44,15 @@
<template v-slot:option="{ option }">
<div class="option-container">
<div class="option-display-name">
<span
v-html="highlightQuery(option.display_name, currentQuery)"
></span>
<div>
<span
v-html="highlightQuery(option.display_name, currentQuery)"
></span>
<span>&nbsp;</span>
<Tag v-if="showIdName" severity="secondary">
<span v-html="highlightQuery(option.name, currentQuery)"></span>
</Tag>
</div>
<div v-if="showCategory" class="option-category">
{{ option.category.replaceAll('/', ' > ') }}
</div>
@@ -106,6 +112,9 @@ const enableNodePreview = computed(() =>
const showCategory = computed(() =>
settingStore.get('Comfy.NodeSearchBoxImpl.ShowCategory')
)
const showIdName = computed(() =>
settingStore.get('Comfy.NodeSearchBoxImpl.ShowIdName')
)
const props = defineProps({
filters: {