1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 05:39:59 +00:00

update wiki mode

This commit is contained in:
ilearnit
2018-12-12 02:34:58 +00:00
parent ce5e3a0cc7
commit 1fc0882b10
8 changed files with 141 additions and 16 deletions

View File

@@ -48,6 +48,12 @@ const propTypes = {
onItemsMove: PropTypes.func.isRequired,
onItemsCopy: PropTypes.func.isRequired,
onItemsDelete: PropTypes.func.isRequired,
onLinkClick: PropTypes.func.isRequired,
isDraft: PropTypes.bool,
hasDraft: PropTypes.bool,
reviewStatus: PropTypes.any,
goReviewPage: PropTypes.func,
goDraftPage: PropTypes.func,
};
class MainPanel extends Component {
@@ -185,6 +191,11 @@ class MainPanel extends Component {
<DirOperationToolBar
path={this.props.path}
repoID={repoID}
isDraft={this.props.isDraft}
hasDraft={this.props.hasDraft}
reviewStatus={this.props.reviewStatus}
goDraftPage={this.props.goDraftPage}
goReviewPage={this.props.goReviewPage}
permission={this.props.permission}
isViewFile={this.props.isViewFile}
onAddFile={this.props.onAddFile}
@@ -224,6 +235,7 @@ class MainPanel extends Component {
isFileLoading={this.props.isFileLoading}
activeTitleIndex={this.state.activeTitleIndex}
onContentRendered={this.onContentRendered}
onLinkClick={this.props.onLinkClick}
/> :
<Fragment>
<DirentListView