Skip to content

Commit fe35ba3

Browse files
committed
fix: update MCP tool icon rendering in index.vue
1 parent a244361 commit fe35ba3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

ui/src/workflow/nodes/ai-chat-node/index.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,20 @@
139139
>
140140
<div class="flex-between border border-r-6 white-bg mb-4" style="padding: 5px 8px">
141141
<div class="flex align-center" style="line-height: 20px">
142-
<ToolIcon type="MCP" class="mr-8" :size="20" />
142+
<el-avatar
143+
v-if="relatedObject(mcpToolSelectOptions, chat_data.mcp_tool_id, 'id')?.icon"
144+
shape="square"
145+
:size="20"
146+
style="background: none"
147+
class="mr-8"
148+
>
149+
<img :src="resetUrl(relatedObject(mcpToolSelectOptions, chat_data.mcp_tool_id, 'id')?.icon)" alt="" />
150+
</el-avatar>
151+
<ToolIcon v-else type="MCP" class="mr-8" :size="20" />
143152

144153
<div
145154
class="ellipsis"
146-
:title="relatedObject(toolSelectOptions, chat_data.mcp_tool_id, 'id')?.name"
155+
:title="relatedObject(mcpToolSelectOptions, chat_data.mcp_tool_id, 'id')?.name"
147156
>
148157
{{
149158
relatedObject(mcpToolSelectOptions, chat_data.mcp_tool_id, 'id')?.name ||

0 commit comments

Comments
 (0)