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

add collabServer

This commit is contained in:
wangjianhui
2018-12-18 17:32:00 +08:00
parent 8afd2797d4
commit 5d0386bbad
10 changed files with 60 additions and 42 deletions

View File

@@ -4,6 +4,7 @@ import { siteRoot } from '../../utils/constants';
import { seafileAPI } from '../../utils/seafile-api';
import { Utils } from '../../utils/utils';
import { gettext } from '../../utils/constants';
import collabServer from '../../utils/collab-server';
import toaster from '../toast';
import DirPanel from './dir-panel';
import Dirent from '../../models/dirent';
@@ -82,6 +83,7 @@ class DirView extends React.Component {
direntList: direntList,
dirID: res.headers.oid,
});
collabServer.watchRepo(this.state.repoID, this.state.path, this.state.dirID);
}).catch(() => {
this.setState({pathExist: false});
});
@@ -462,7 +464,6 @@ class DirView extends React.Component {
render() {
return (
<DirPanel
dirID={this.state.dirID}
pathPrefix={this.props.pathPrefix}
currentRepoInfo={this.state.currentRepoInfo}
path={this.state.path}