Skip to content

Commit

Permalink
feat: allow machine translation and TM when user can edit
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Sep 3, 2024
1 parent d241430 commit 3b024d2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions webapp/src/views/projects/translations/ToolsPanel/ToolsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,13 @@ export const ToolsPanel = () => {
language.id
) &&
translation?.state !== 'DISABLED') ||
keyData?.tasks?.find(
(t) =>
t.languageTag === language.tag &&
t.userAssigned &&
t.type === 'TRANSLATE'
Boolean(
keyData?.tasks?.find(
(t) =>
t.languageTag === language.tag &&
t.userAssigned &&
t.type === 'TRANSLATE'
)
)
: false,
projectPermissions,
Expand Down

0 comments on commit 3b024d2

Please sign in to comment.