💄Rearrange context menu items
This commit is contained in:
committed by
ericlinagora
parent
6a50ba9209
commit
12a51d761c
@@ -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": "Добавить документ в папку",
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user