1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

[dir view] for file items: added 'Properties' to its context menu, (#5581)

* [dir view] for file items: added 'Properties' to its context menu,
'more' dropdown menus in <tr> & the top toolbar

- click 'Properties', the 'info' panel will be shown

* [dir view] operation menu for file item: removed 'Comment', moved 'Properties'
This commit is contained in:
llj
2023-08-10 19:39:58 +08:00
committed by GitHub
parent d27a8c218e
commit 7fe8fbfc7f
6 changed files with 18 additions and 3 deletions

View File

@@ -220,6 +220,9 @@ class MultipleDirOperationToolbar extends React.Component {
case 'Access Log':
this.onAccessLog(dirent);
break;
case 'Properties':
this.props.showDirentDetail('info');
break;
case 'Open via Client':
this.onOpenViaClient(dirent);
break;

View File

@@ -34,7 +34,7 @@ class ViewModeToolbar extends React.Component {
</div>
{!this.props.isCustomPermission && (
<div className="detail-btn btn-group">
<button className="btn btn-secondary btn-icon ml-1 fas fa-info" id='detail' title={gettext('Detail')} aria-label={gettext('Detail')} onClick={this.switchViewMode}></button>
<button className="btn btn-secondary btn-icon ml-1 fas fa-info" id='detail' title={gettext('Properties')} aria-label={gettext('Properties')} onClick={this.switchViewMode}></button>
</div>
)}
</React.Fragment>