💄 frontend: hide open in new window context menu (#603)
This commit is contained in:
committed by
ericlinagora
parent
5b3d89bade
commit
bb07ca2a7a
@@ -102,6 +102,7 @@ export const useOnBuildContextMenu = (children: DriveItem[], initialParentId?: s
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/*TODO: fix loading of preview in new window and uncomment. See https://github.com/linagora/twake-drive/issues/603 .
|
||||||
{
|
{
|
||||||
type: 'menu',
|
type: 'menu',
|
||||||
icon: 'eye',
|
icon: 'eye',
|
||||||
@@ -112,7 +113,7 @@ export const useOnBuildContextMenu = (children: DriveItem[], initialParentId?: s
|
|||||||
const route = RouterServices.generateRouteFromState({ companyId: company, viewId, itemId });
|
const route = RouterServices.generateRouteFromState({ companyId: company, viewId, itemId });
|
||||||
window.open(route, '_blank');
|
window.open(route, '_blank');
|
||||||
}
|
}
|
||||||
},
|
}, // */
|
||||||
{ type: 'separator' },
|
{ type: 'separator' },
|
||||||
{
|
{
|
||||||
type: 'menu',
|
type: 'menu',
|
||||||
|
|||||||
Reference in New Issue
Block a user