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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user