Skip to content

Commit

Permalink
feat: adjust to backend changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Jul 28, 2023
1 parent c4f260e commit 74de3f0
Show file tree
Hide file tree
Showing 7 changed files with 176 additions and 348 deletions.
3 changes: 2 additions & 1 deletion webapp/src/ee/PermissionsAdvanced/PermissionsAdvanced.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ export const PermissionsAdvanced: React.FC<Props> = ({
children: [
{ value: 'batch-jobs.view' },
{ value: 'batch-jobs.cancel' },
{ value: 'batch-auto-translate' },
{ value: 'translations.batch-by-mt' },
{ value: 'translations.batch-machine' },
],
},
{
Expand Down
7 changes: 6 additions & 1 deletion webapp/src/ee/PermissionsAdvanced/useScopeTranslations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ export const useScopeTranslations = () => {
'activity.view': t('permissions_item_activity_view'),
'batch-jobs.view': t('permissions_item_batch_jobs_view'),
'batch-jobs.cancel': t('permissions_item_batch_jobs_cancel'),
'batch-auto-translate': t('permissions_item_batch_jobs_auto_translate'),
'translations.batch-by-mt': t(
'permissions_item_batch_jobs_batch_translate_by_mt'
),
'translations.batch-machine': t(
'permissions_item_batch_jobs_batch_translate_by_machine'
),
};

return {
Expand Down
Loading

0 comments on commit 74de3f0

Please sign in to comment.