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:
@@ -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;
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user