Skip to content

Commit

Permalink
change Open parent folder menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael18811380328 committed Aug 6, 2024
1 parent c8869c7 commit 411c49a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions frontend/src/components/file-view/file-toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,6 @@ class FileToolbar extends React.Component {
text={gettext('Print')}
/>
)}
<IconButton
id="open-parent-folder"
icon="open-folder"
text={gettext('Open parent folder')}
tag="a"
href={`${siteRoot}library/${repoID}/${Utils.encodePath(repoName + parentDir)}`}
/>
{showLockUnlockBtn && (
<IconButton
id="lock-unlock-file"
Expand Down Expand Up @@ -203,6 +196,9 @@ class FileToolbar extends React.Component {
{gettext('History')}
</a>
)}
<a href={`${siteRoot}library/${repoID}/${Utils.encodePath(repoName + parentDir)}`} className="dropdown-item">
{gettext('Open parent folder')}
</a>
</DropdownMenu>
</Dropdown>
</div>
Expand Down

0 comments on commit 411c49a

Please sign in to comment.