* [bug #67050] fix ai prompts menu show in api-view.

This commit is contained in:
sunhao
2025-11-20 17:14:10 +08:00
parent c41f796c52
commit 14cc90f974
+1 -1
View File
@@ -956,7 +956,7 @@ const actionsMap =
let aiAction = null;
const docAIPrompts = window.docAIPrompts;
if(docAIPrompts && docAIPrompts.length)
if(!isApi && docAIPrompts && docAIPrompts.length)
{
const aiLang = window.docAIPromptLang;
const aiActionItems = docAIPrompts.map(prompt => ({icon: 'magic', text: prompt.status !== 'active' ? zui.html`${prompt.name}<span class="label size-sm gray-500-pale ring-gray-500 whitespace-nowrap ml-1">${aiLang.statuses[prompt.status]}</span>` : prompt.name, command: `executeAIPrompt/${prompt.id}/${doc.id}`, hint: prompt.desc}));