* [bug #67050] fix ai prompts menu show in api-view.
This commit is contained in:
@@ -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}));
|
||||
|
||||
Reference in New Issue
Block a user