Skip to content

Commit fe17f65

Browse files
janepiebackportbot[bot]
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 e2505e7 commit fe17f65

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
@@ -118,7 +118,9 @@ export const getAssistantMenuEntries = (): MenuEntry[] => {
118118
component: AssistantAction,
119119
priority: 7,
120120
}
121-
const hasAssistantTaskTypes = loadState('text', 'taskprocessing', []).length > 0
121+
const hasAssistantTaskTypes =
122+
loadState('text', 'taskprocessing', []).length > 0
123+
|| loadState('text', 'translation_available', false)
122124
return hasAssistantTaskTypes ? [assistantMenuEntry] : []
123125
}
124126

0 commit comments

Comments
 (0)