mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-21 19:00:12 +00:00
Fix Merge branch '12.0' txt viewer bug (#8309)
This commit is contained in:
@@ -259,16 +259,6 @@ class FileToolbar extends React.Component {
|
||||
<a href={`${siteRoot}library/${repoID}/${Utils.encodePath(repoName + parentDir)}`} className="dropdown-item">
|
||||
{gettext('Open parent folder')}
|
||||
</a>
|
||||
{isTxt &&
|
||||
<DropdownItem id='txt-line-wrap-menu' className='dropdown-item'>
|
||||
<Switch
|
||||
checked={this.props.lineWrapping}
|
||||
placeholder={gettext('Line wrapping')}
|
||||
className="txt-line-wrap-menu w-100"
|
||||
onChange={() => this.props.updateLineWrapping(!this.props.lineWrapping)}
|
||||
/>
|
||||
</DropdownItem>
|
||||
}
|
||||
</DropdownMenu>
|
||||
</Dropdown>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user