mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 00:20:07 +00:00
remove comment to Seafile editor (#3287)
* remove toolbar comment btn * remove comment panel in markdown-editor
This commit is contained in:
@@ -20,8 +20,6 @@ const propTypes = {
|
||||
openDialogs: PropTypes.func.isRequired,
|
||||
showFileHistory: PropTypes.bool.isRequired,
|
||||
toggleHistory: PropTypes.func.isRequired,
|
||||
// commentsNumber: PropTypes.number.isRequired,
|
||||
// toggleCommentList: PropTypes.func.isRequired,
|
||||
editorMode: PropTypes.string.isRequired,
|
||||
readOnly: PropTypes.bool.isRequired,
|
||||
contentChanged: PropTypes.bool.isRequired,
|
||||
@@ -115,15 +113,6 @@ class MarkdownViewerToolbar extends React.Component {
|
||||
<ButtonGroup>
|
||||
<IconButton id={'shareBtn'} text={gettext('Share')} icon={'fa fa-share-alt'}
|
||||
onMouseDown={this.props.toggleShareLinkDialog}/>
|
||||
{/*
|
||||
this.props.commentsNumber > 0 ?
|
||||
<button className="btn btn-icon btn-secondary btn-active" id="commentsNumber" type="button"
|
||||
data-active="false" onMouseDown={this.props.toggleCommentList}>
|
||||
<i className="fa fa-comments"></i>{' '}<span>{this.props.commentsNumber}</span>
|
||||
</button>
|
||||
:
|
||||
<IconButton id={'commentsNumber'} text={gettext('Comments')} icon={'fa fa-comments'} onMouseDown={this.props.toggleCommentList}/>
|
||||
*/}
|
||||
<IconButton text={gettext('Back to parent directory')} id={'parentDirectory'}
|
||||
icon={'fa fa-folder-open'} onMouseDown={this.props.backToParentDirectory}/>
|
||||
{
|
||||
|
Reference in New Issue
Block a user