💄Removed "Go to trash" menu item
This commit is contained in:
committed by
Anton Shepilov
parent
af753babb8
commit
df775f0b57
@@ -341,7 +341,6 @@
|
|||||||
"components.item_context_menu.trash.empty": "Empty trash",
|
"components.item_context_menu.trash.empty": "Empty trash",
|
||||||
"components.item_context_menu.add_documents": "Add document or folder",
|
"components.item_context_menu.add_documents": "Add document or folder",
|
||||||
"components.item_context_menu.download_folder": "Download folder",
|
"components.item_context_menu.download_folder": "Download folder",
|
||||||
"components.item_context_menu.go_to_trash": "Go to trash",
|
|
||||||
"components.item_context_menu.manage_users": "Manager users",
|
"components.item_context_menu.manage_users": "Manager users",
|
||||||
"components.item_context_menu.all": "All",
|
"components.item_context_menu.all": "All",
|
||||||
"components.item_context_menu.today": "Today",
|
"components.item_context_menu.today": "Today",
|
||||||
|
|||||||
@@ -332,7 +332,6 @@
|
|||||||
"components.item_context_menu.trash.empty": "Vider 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.add_documents": "Ajouter un document ou un dossier",
|
||||||
"components.item_context_menu.download_folder": "Télécharger le dossier",
|
"components.item_context_menu.download_folder": "Télécharger le dossier",
|
||||||
"components.item_context_menu.go_to_trash": "Voir la corbeille",
|
|
||||||
"components.item_context_menu.all": "Tous",
|
"components.item_context_menu.all": "Tous",
|
||||||
"components.item_context_menu.today": "Aujourd'hui",
|
"components.item_context_menu.today": "Aujourd'hui",
|
||||||
"components.item_context_menu.last_week": "La semaine dernière",
|
"components.item_context_menu.last_week": "La semaine dernière",
|
||||||
|
|||||||
@@ -331,7 +331,6 @@
|
|||||||
"components.item_context_menu.trash.empty": "Очистить корзину",
|
"components.item_context_menu.trash.empty": "Очистить корзину",
|
||||||
"components.item_context_menu.add_documents": "Добавить документ в папку",
|
"components.item_context_menu.add_documents": "Добавить документ в папку",
|
||||||
"components.item_context_menu.download_folder": "Скачать папку",
|
"components.item_context_menu.download_folder": "Скачать папку",
|
||||||
"components.item_context_menu.go_to_trash": "Перейти в корзину",
|
|
||||||
"components.item_context_menu.all": "Все",
|
"components.item_context_menu.all": "Все",
|
||||||
"components.item_context_menu.today": "Сегодня",
|
"components.item_context_menu.today": "Сегодня",
|
||||||
"components.item_context_menu.last_week": "За неделю",
|
"components.item_context_menu.last_week": "За неделю",
|
||||||
|
|||||||
@@ -329,7 +329,6 @@
|
|||||||
"components.item_context_menu.trash.empty": "Làm trống 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.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",
|
"components.item_context_menu.download_folder": "Tải xuống thư mục",
|
||||||
"components.item_context_menu.go_to_trash": "Chuyển đến thùng rác",
|
|
||||||
"components.item_context_menu.manage_users": "Quản lý người dùng",
|
"components.item_context_menu.manage_users": "Quản lý người dùng",
|
||||||
"components.item_context_menu.all": "Tất cả",
|
"components.item_context_menu.all": "Tất cả",
|
||||||
"components.item_context_menu.today": "Hôm nay",
|
"components.item_context_menu.today": "Hôm nay",
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ export const useOnBuildContextMenu = (children: DriveItem[], initialParentId?: s
|
|||||||
icon: 'download-alt',
|
icon: 'download-alt',
|
||||||
text: Languages.t('components.item_context_menu.download'),
|
text: Languages.t('components.item_context_menu.download'),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
if (item.is_directory) {
|
if (item && item.is_directory) {
|
||||||
downloadZip([item!.id]);
|
downloadZip([item!.id]);
|
||||||
console.log(item!.id);
|
console.log(item!.id);
|
||||||
} else {
|
} else {
|
||||||
@@ -329,14 +329,7 @@ export const useOnBuildContextMenu = (children: DriveItem[], initialParentId?: s
|
|||||||
text: Languages.t('components.item_context_menu.manage_users'),
|
text: Languages.t('components.item_context_menu.manage_users'),
|
||||||
hide: parent.item!.id != 'root',
|
hide: parent.item!.id != 'root',
|
||||||
onClick: () => setUsersModalState({ open: true }),
|
onClick: () => setUsersModalState({ open: true }),
|
||||||
},
|
}
|
||||||
{ type: 'separator', hide: inTrash || parent.access === 'read' },
|
|
||||||
{
|
|
||||||
type: 'menu',
|
|
||||||
text: Languages.t('components.item_context_menu.go_to_trash'),
|
|
||||||
hide: inTrash || parent.access === 'read',
|
|
||||||
onClick: () => setParentId('trash'),
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
if (menu.length && newMenuActions.filter(a => !a.hide).length) {
|
if (menu.length && newMenuActions.filter(a => !a.hide).length) {
|
||||||
menu = [...menu, { type: 'separator' }];
|
menu = [...menu, { type: 'separator' }];
|
||||||
|
|||||||
Reference in New Issue
Block a user