diff --git a/tdrive/frontend/public/locales/ru.json b/tdrive/frontend/public/locales/ru.json index 40bd93f7..5f1e3f64 100644 --- a/tdrive/frontend/public/locales/ru.json +++ b/tdrive/frontend/public/locales/ru.json @@ -320,15 +320,15 @@ "components.item_context_menu.versions": "История изменений", "components.item_context_menu.move": "Переместить", "components.item_context_menu.move.modal_header": "Переместить", - "components.item_context_menu.move_to_trash": "Отправить в корзину", + "components.item_context_menu.move_to_trash": "Удалить", "components.item_context_menu.delete": "Удалить", "components.item_context_menu.restore": "Restore", "components.item_context_menu.move_multiple": "Переместить все", "components.item_context_menu.move_multiple.modal_header": "Переместить выбранные елементы", "components.item_context_menu.download_multiple": "Скачать все", - "components.item_context_menu.clear_selection": "Очистить выбор", - "components.item_context_menu.delete_multiple": "Удалить все", - "components.item_context_menu.to_trash_multiple": "Все в корзину", + "components.item_context_menu.clear_selection": "Снять выделение", + "components.item_context_menu.delete_multiple": "Удалить", + "components.item_context_menu.to_trash_multiple": "Удалить", "components.item_context_menu.trash.exit": "Выйти из корзины", "components.item_context_menu.trash.empty": "Очистить корзину", "components.item_context_menu.add_documents": "Добавить документ в папку", diff --git a/tdrive/frontend/src/app/views/client/body/drive/context-menu.tsx b/tdrive/frontend/src/app/views/client/body/drive/context-menu.tsx index 7e945c82..0233c1b2 100644 --- a/tdrive/frontend/src/app/views/client/body/drive/context-menu.tsx +++ b/tdrive/frontend/src/app/views/client/body/drive/context-menu.tsx @@ -74,13 +74,6 @@ export const useOnBuildContextMenu = (children: DriveItem[], initialParentId?: s const upToDateItem = await DriveApiClient.get(item.company_id, item.id); const access = upToDateItem.access || 'none'; const newMenuActions = [ - { - type: 'menu', - icon: 'document', - text: Languages.t('components.item_context_menu.preview'), - hide: item.is_directory, - onClick: () => preview(item), - }, { type: 'menu', icon: 'share-alt', @@ -88,6 +81,14 @@ export const useOnBuildContextMenu = (children: DriveItem[], initialParentId?: s hide: access === 'read' || getPublicLinkToken() || inTrash, onClick: () => setPublicLinkModalState({ open: true, id: item.id }), }, + { + type: 'menu', + icon: 'users-alt', + text: Languages.t('components.item_context_menu.manage_access'), + hide: access === 'read' || getPublicLinkToken() || inTrash, + onClick: () => setAccessModalState({ open: true, id: item.id }), + }, + { type: 'separator' }, { type: 'menu', icon: 'download-alt', @@ -101,7 +102,6 @@ export const useOnBuildContextMenu = (children: DriveItem[], initialParentId?: s } } }, - { type: 'separator' }, { type: 'menu', icon: 'eye', @@ -114,13 +114,6 @@ export const useOnBuildContextMenu = (children: DriveItem[], initialParentId?: s } }, { type: 'separator' }, - { - type: 'menu', - icon: 'users-alt', - text: Languages.t('components.item_context_menu.manage_access'), - hide: access === 'read' || getPublicLinkToken() || inTrash, - onClick: () => setAccessModalState({ open: true, id: item.id }), - }, { type: 'menu', icon: 'folder-question',