1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

Start review directly from existing files (#2512)

This commit is contained in:
C_Q
2018-11-09 18:03:10 +08:00
committed by Daniel Pan
parent 1a71f8f84f
commit b25d605b9b
3 changed files with 73 additions and 2 deletions

View File

@@ -238,10 +238,14 @@ class EditorUtilities {
window.location.href = serviceUrl + '/lib/' + res.data.origin_repo_id + '/file' + res.data.draft_file_path + '?mode=edit'
})
}
createFileReview() {
return seafileAPI.createFileReview(repoID, filePath).then(res => {
window.location.href = serviceUrl + '/drafts/review/' + res.data.id;
})
}
}
const editorUtilities = new EditorUtilities();
class MarkdownEditor extends React.Component {