mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-11 20:01:10 +00:00
12.0 list view support multiple selection (#6421)
* Feature - multiple selection with ctrl/shift * update grid view context menu list in multiple selection mode * list view support multiple selection * improve list view selection experience * before remove activeDirent state * improve list view selection experience * fix warnings
This commit is contained in:
@@ -532,7 +532,9 @@ class DirentGridView extends React.Component {
|
||||
if (this.props.selectedDirentList.length > 1) return;
|
||||
// Display menu items according to the current dirent permission
|
||||
const menuList = this.getDirentItemMenuList(dirent, true);
|
||||
this.handleContextClick(event, GRID_ITEM_CONTEXTMENU_ID, menuList, dirent);
|
||||
const id = 'grid-item-contextmenu';
|
||||
this.handleContextClick(event, id, menuList, dirent);
|
||||
if (this.props.direntList.filter(item => item.isSelected).length > 1) return;
|
||||
this.props.onGridItemClick && this.props.onGridItemClick(dirent);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user