From 1a43a75479af0a23655755c97971ede7aa401a40 Mon Sep 17 00:00:00 2001 From: Eric Doughty-Papassideris Date: Mon, 23 Sep 2024 03:02:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20frontend:=20remove=20exit=20from?= =?UTF-8?q?=20trash=20context=20menu=20entry=20(#525)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit didn't work, and no real point --- tdrive/frontend/public/locales/en.json | 1 - tdrive/frontend/public/locales/fr.json | 1 - tdrive/frontend/public/locales/ru.json | 1 - tdrive/frontend/public/locales/vn.json | 1 - .../src/app/views/client/body/drive/context-menu.tsx | 6 ------ 5 files changed, 10 deletions(-) diff --git a/tdrive/frontend/public/locales/en.json b/tdrive/frontend/public/locales/en.json index ed30b170..640ea389 100644 --- a/tdrive/frontend/public/locales/en.json +++ b/tdrive/frontend/public/locales/en.json @@ -338,7 +338,6 @@ "components.item_context_menu.clear_selection": "Clear selection", "components.item_context_menu.delete_multiple": "Delete", "components.item_context_menu.to_trash_multiple": "Move selected items to trash", - "components.item_context_menu.trash.exit": "Exit trash", "components.item_context_menu.trash.empty": "Empty trash", "components.item_context_menu.add_documents": "Add document or folder", "components.item_context_menu.download_folder": "Download folder", diff --git a/tdrive/frontend/public/locales/fr.json b/tdrive/frontend/public/locales/fr.json index ce1d214c..9eff15cc 100644 --- a/tdrive/frontend/public/locales/fr.json +++ b/tdrive/frontend/public/locales/fr.json @@ -329,7 +329,6 @@ "components.item_context_menu.clear_selection": "Annuler la sélection", "components.item_context_menu.delete_multiple": "Supprimer", "components.item_context_menu.to_trash_multiple": "Supprimer", - "components.item_context_menu.trash.exit": "Quitter la corbeille", "components.item_context_menu.trash.empty": "Vider la corbeille", "components.item_context_menu.add_documents": "Ajouter un document ou un dossier", "components.item_context_menu.download_folder": "Télécharger le dossier", diff --git a/tdrive/frontend/public/locales/ru.json b/tdrive/frontend/public/locales/ru.json index 2b4392ca..881afb88 100644 --- a/tdrive/frontend/public/locales/ru.json +++ b/tdrive/frontend/public/locales/ru.json @@ -328,7 +328,6 @@ "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": "Добавить документ в папку", "components.item_context_menu.download_folder": "Скачать папку", diff --git a/tdrive/frontend/public/locales/vn.json b/tdrive/frontend/public/locales/vn.json index 39d92f22..71528743 100644 --- a/tdrive/frontend/public/locales/vn.json +++ b/tdrive/frontend/public/locales/vn.json @@ -326,7 +326,6 @@ "components.item_context_menu.clear_selection": "Xóa lựa chọn", "components.item_context_menu.delete_multiple": "Xóa", "components.item_context_menu.to_trash_multiple": "Di chuyển các mục đã chọn vào thùng rác", - "components.item_context_menu.trash.exit": "Thoát thùng rác", "components.item_context_menu.trash.empty": "Làm trống thùng rác", "components.item_context_menu.add_documents": "Thêm tài liệu hoặc thư mục", "components.item_context_menu.download_folder": "Tải xuống thư mục", 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 5b265e3b..c7c6fc94 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 @@ -268,12 +268,6 @@ export const useOnBuildContextMenu = (children: DriveItem[], initialParentId?: s //Add parent related menus const newMenuActions: any[] = inTrash ? [ - { - type: 'menu', - text: Languages.t('components.item_context_menu.trash.exit'), - onClick: () => setParentId('root'), - }, - { type: 'separator' }, { type: 'menu', text: Languages.t('components.item_context_menu.trash.empty'),