1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

adjust button group (#3147)

This commit is contained in:
Michael An
2019-03-20 14:49:16 +08:00
committed by Daniel Pan
parent 513e90d55c
commit 1c417e9e71
2 changed files with 16 additions and 12 deletions

View File

@@ -298,16 +298,15 @@ class MutipleDirOperationToolbar extends React.Component {
<Button className="secondary group-op-item action-icon sf2-icon-copy" title={gettext('Copy')} onClick={this.onCopyToggle}></Button>
<Button className="secondary group-op-item action-icon sf2-icon-delete" title={gettext('Delete')} onClick={this.onItemsDelete}></Button>
<Button className="secondary group-op-item action-icon sf2-icon-download" title={gettext('Download')} onClick={this.onItemsDownload}></Button>
{this.props.selectedDirentList.length > 0 &&
<DirentsMenu
dirents={this.props.selectedDirentList}
currentRepoInfo={this.props.currentRepoInfo}
isRepoOwner={this.props.isRepoOwner}
onMenuItemClick={this.onMenuItemClick}
/>
}
</ButtonGroup>
{
this.props.selectedDirentList.length > 0 &&
<DirentsMenu
dirents={this.props.selectedDirentList}
currentRepoInfo={this.props.currentRepoInfo}
isRepoOwner={this.props.isRepoOwner}
onMenuItemClick={this.onMenuItemClick}
/>
}
</div>
{this.state.isMoveDialogShow &&
<MoveDirentDialog