1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-27 15:54:39 +00:00

feat: add exdraw comment (#8137)

This commit is contained in:
zhichaona
2025-08-15 14:09:56 +08:00
committed by GitHub
parent b32505def8
commit bc54f94390
2 changed files with 11 additions and 0 deletions

View File

@@ -144,6 +144,7 @@ class FileView extends React.Component {
<OnlyofficeFileToolbar
toggleDetailsPanel={this.toggleDetailsPanel}
toggleHeader={this.toggleHeader}
toggleCommentPanel={this.toggleCommentPanel}
/> :
<FileToolbar
isLocked={this.state.isLocked}

View File

@@ -48,6 +48,13 @@ class OnlyofficeFileToolbar extends React.Component {
text={gettext('Details')}
onClick={this.props.toggleDetailsPanel}
/>
<div
className='file-toolbar-btn'
onClick={this.props.toggleCommentPanel}
aria-label={gettext('Comment')}
>
<i className="sdocfont sdoc-comments"></i>
</div>
<Dropdown isOpen={moreDropdownOpen} toggle={this.toggleMoreOpMenu}>
<DropdownToggle
tag="span"
@@ -83,6 +90,9 @@ class OnlyofficeFileToolbar extends React.Component {
{gettext('Open parent folder')}
</a>
</DropdownItem>
<DropdownItem onClick={this.props.toggleCommentPanel}>
{gettext('Comment')}
</DropdownItem>
</DropdownMenu>
</Dropdown>
</Fragment>