1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 00:20:07 +00:00

[dir view, repo wiki mode] show images with popup (#2834)

* [dir view, repo wiki mode] show images with popup

* [image pupup] modification
This commit is contained in:
llj
2019-01-16 17:45:46 +08:00
committed by Daniel Pan
parent 09aee97e0c
commit ca4dee899b
10 changed files with 154 additions and 6 deletions

View File

@@ -28,6 +28,7 @@ class Wiki extends Component {
constructor(props) {
super(props);
this.state = {
repoEncrypted: false,
path: '',
pathExist: true,
treeData: new Tree(),
@@ -83,7 +84,7 @@ class Wiki extends Component {
seafileAPI.getRepoInfo(repoID).then(res => {
this.setState({
libNeedDecrypt: res.data.lib_need_decrypt,
encrypted: res.data.encrypted
repoEncrypted: res.data.encrypted
});
if (!res.data.lib_need_decrypt) {
@@ -343,7 +344,7 @@ class Wiki extends Component {
dirID: res.headers.oid,
});
if (!this.state.encrypted && direntList.length) {
if (!this.state.repoEncrypted && direntList.length) {
this.getThumbnails(repoID, path, this.state.direntList);
}
});
@@ -1000,6 +1001,7 @@ class Wiki extends Component {
/>
<MainPanel
path={this.state.path}
repoEncrypted={this.state.repoEncrypted}
isViewFile={this.state.isViewFile}
pathExist={this.state.pathExist}
isDirentListLoading={this.state.isDirentListLoading}