Skip to content

Commit a635a2a

Browse files
janepieAndyScherzinger
authored andcommitted
fix: show Assistant icon if only translation provider available
Signed-off-by: janepie <49834966+janepie@users.noreply.github.com> Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
1 parent 6bb16c0 commit a635a2a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/Menu/entries.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ export const getAssistantMenuEntries = (): MenuEntry[] => {
117117
component: AssistantAction,
118118
priority: 7,
119119
}
120-
const hasAssistantTaskTypes = loadState('text', 'taskprocessing', []).length > 0
120+
const hasAssistantTaskTypes =
121+
loadState('text', 'taskprocessing', []).length > 0
122+
|| loadState('text', 'translation_available', false)
121123
return hasAssistantTaskTypes ? [assistantMenuEntry] : []
122124
}
123125

0 commit comments

Comments
 (0)