1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 06:33:48 +00:00

update open-parent-folder button into drop-down-menu (#6582)

* update open-parent-folder button into drop-down-menu

* update the big-screen open-parent-folder

---------

Co-authored-by: 苏国栋 <gaozijian@StephenMacBook-Pro.local>
This commit is contained in:
Stephen
2024-08-20 18:08:51 +08:00
committed by GitHub
parent 610abf83e3
commit f5a74a1b42
2 changed files with 4 additions and 7 deletions

View File

@@ -78,12 +78,6 @@ class HeaderToolbar extends React.Component {
/>
}
<ButtonGroup>
<ButtonItem
text={gettext('Open parent directory')}
id='parentDirectory'
icon='open-folder'
onMouseDown={this.openParentDirectory}
/>
{(canLockUnlockFile && !isLocked) && (
<ButtonItem
id="lock-unlock-file"
@@ -146,6 +140,7 @@ class HeaderToolbar extends React.Component {
onEdit={this.props.onEdit}
showFileHistory={this.props.showFileHistory}
toggleHistory={this.props.toggleHistory}
openParentDirectory={this.openParentDirectory}
isSmallScreen={false}
/>
</div>
@@ -225,6 +220,7 @@ class HeaderToolbar extends React.Component {
openDialogs={this.props.openDialogs}
editorMode={this.props.editorMode}
onEdit={this.props.onEdit}
openParentDirectory={this.openParentDirectory}
isSmallScreen={false}
/>
</div>
@@ -254,6 +250,7 @@ class HeaderToolbar extends React.Component {
openDialogs={this.props.openDialogs}
editorMode={this.props.editorMode}
onEdit={this.props.onEdit}
openParentDirectory={this.openParentDirectory}
isSmallScreen={false}
/>
</div>

View File

@@ -66,7 +66,7 @@ class MoreMenu extends React.PureComponent {
{(this.props.openDialogs && editorMode === 'rich') &&
<DropdownItem onClick={this.onHelpModuleToggle}>{gettext('Help')}</DropdownItem>
}
{isSmall && <DropdownItem onClick={this.props.openParentDirectory}>{gettext('Open parent directory')}</DropdownItem>}
<DropdownItem onClick={this.props.openParentDirectory}>{gettext('Open parent directory')}</DropdownItem>
{isSmall && canGenerateShareLink && <DropdownItem onClick={this.props.toggleShareLinkDialog}>{gettext('Share')}</DropdownItem>}
{isSmall && canDownloadFile &&
<DropdownItem onClick={this.downloadFile}>{gettext('Download')}</DropdownItem>