mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
New draft file (#2465)
This commit is contained in:
@@ -252,8 +252,8 @@ class Wiki extends Component {
|
||||
});
|
||||
}
|
||||
|
||||
onAddFileNode = (filePath) => {
|
||||
editorUtilities.createFile(filePath).then(res => {
|
||||
onAddFileNode = (filePath, isDraft) => {
|
||||
editorUtilities.createFile(filePath, isDraft).then(res => {
|
||||
let tree = this.state.tree_data.clone();
|
||||
let name = this.getFileNameByPath(filePath);
|
||||
let index = filePath.lastIndexOf('/');
|
||||
|
Reference in New Issue
Block a user