1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 19:37:28 +00:00

repair wiki-mode-bug

This commit is contained in:
shanshuirenjia
2018-12-13 14:57:46 +08:00
parent 4d890a4b7c
commit 2b65bb2afe
3 changed files with 15 additions and 13 deletions

View File

@@ -9964,7 +9964,7 @@
}, },
"react-popper": { "react-popper": {
"version": "0.8.3", "version": "0.8.3",
"resolved": "http://registry.npmjs.org/react-popper/-/react-popper-0.8.3.tgz", "resolved": "https://registry.npmjs.org/react-popper/-/react-popper-0.8.3.tgz",
"integrity": "sha1-D3MzMTfJ+wr27EB00tBYWgoEYeE=", "integrity": "sha1-D3MzMTfJ+wr27EB00tBYWgoEYeE=",
"requires": { "requires": {
"popper.js": "^1.12.9", "popper.js": "^1.12.9",
@@ -10793,9 +10793,9 @@
} }
}, },
"seafile-js": { "seafile-js": {
"version": "0.2.44", "version": "0.2.45",
"resolved": "https://registry.npmjs.org/seafile-js/-/seafile-js-0.2.44.tgz", "resolved": "https://registry.npmjs.org/seafile-js/-/seafile-js-0.2.45.tgz",
"integrity": "sha512-GWYou50CGkEsmspTpdfpCKkM7VH6uvah6e56a7zlLdXe6oOpDzAvEmct2Z6Hxo8bPIHv3s769AOPtk6RWOeEwQ==", "integrity": "sha512-qkKuqUMRKJxyXYYFI2Q4PPCbbxuA7wc6RWs4WTF67cHvh1VwAMNlE4xsRZhKQP0ZdUS+cHf2W8enZvb+dvucJQ==",
"requires": { "requires": {
"axios": "^0.18.0", "axios": "^0.18.0",
"form-data": "^2.3.2", "form-data": "^2.3.2",

View File

@@ -30,7 +30,7 @@
"react-moment": "^0.7.9", "react-moment": "^0.7.9",
"react-select": "^2.1.1", "react-select": "^2.1.1",
"reactstrap": "^6.4.0", "reactstrap": "^6.4.0",
"seafile-js": "^0.2.44", "seafile-js": "^0.2.45",
"seafile-ui": "^0.1.10", "seafile-ui": "^0.1.10",
"sw-precache-webpack-plugin": "0.11.4", "sw-precache-webpack-plugin": "0.11.4",
"unified": "^7.0.0", "unified": "^7.0.0",

View File

@@ -1,7 +1,7 @@
import React, { Component, Fragment } from 'react'; import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import cookie from 'react-cookies'; import cookie from 'react-cookies';
import { gettext, repoID, siteRoot, slug, permission } from '../../utils/constants'; import { gettext, repoID, siteRoot, permission } from '../../utils/constants';
import { seafileAPI } from '../../utils/seafile-api'; import { seafileAPI } from '../../utils/seafile-api';
import { Utils } from '../../utils/utils'; import { Utils } from '../../utils/utils';
import Repo from '../../models/repo'; import Repo from '../../models/repo';
@@ -201,13 +201,15 @@ class MainPanel extends Component {
<div className="main-panel-center flex-row"> <div className="main-panel-center flex-row">
<div className="cur-view-container"> <div className="cur-view-container">
<div className="cur-view-path"> <div className="cur-view-path">
<CurDirPath {this.state.currentRepo && (
repoID={repoID} <CurDirPath
repoName={slug} repoID={repoID}
currentPath={this.props.path} repoName={this.state.currentRepo.repo_name}
permission={permission} currentPath={this.props.path}
onPathClick={this.onMainNavBarClick} permission={permission}
/> onPathClick={this.onMainNavBarClick}
/>
)}
</div> </div>
<div className="cur-view-content" onScroll={this.handlePageScroll} ref="curViewContent"> <div className="cur-view-content" onScroll={this.handlePageScroll} ref="curViewContent">
{!this.props.pathExist ? {!this.props.pathExist ?