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

update config

This commit is contained in:
ilearnit
2018-09-27 12:01:56 +08:00
parent 2d490b09cd
commit 8cf2641028
4 changed files with 36 additions and 13 deletions

View File

@@ -154,8 +154,22 @@ class EditorUtilities {
}
getDraftKey() {
return (this.repoID + this.filePath);
return (repoID + filePath);
}
getFileContent(url) {
return seafileAPI.getFileContent(url);
}
listFileHistoryRecords(page, perPage) {
return (
seafileAPI.listFileHistoryRecords(repoID, filePath, page, perPage)
)
}
getFileHistoryVersion(commitID) {
return seafileAPI.getFileRevision(repoID, commitID, filePath);
}
}
@@ -227,6 +241,7 @@ class MarkdownEditor extends React.Component {
editorUtilities={editorUtilities}
userInfo={this.state.collabServer ? userInfo : null}
collabServer={this.state.collabServer}
showFileHistory={true}
mode={mode}
/>
);