mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 10:58:33 +00:00
New draft file (#2465)
This commit is contained in:
@@ -158,9 +158,9 @@ class MainPanel extends Component {
|
||||
this.setState({showFileDialog: !this.state.showFileDialog});
|
||||
}
|
||||
|
||||
onMainAddFile = (filePath) => {
|
||||
onMainAddFile = (filePath, isDraft) => {
|
||||
this.setState({showFileDialog: !this.state.showFileDialog});
|
||||
this.props.onMainAddFile(filePath);
|
||||
this.props.onMainAddFile(filePath, isDraft);
|
||||
}
|
||||
|
||||
onMainAddFolder = (dirPath) => {
|
||||
|
@@ -127,9 +127,9 @@ class SidePanel extends Component {
|
||||
this.props.onAddFolderNode(dirPath);
|
||||
}
|
||||
|
||||
onAddFileNode = (filePath) => {
|
||||
onAddFileNode = (filePath, isDraft) => {
|
||||
this.setState({showFile: !this.state.showFile});
|
||||
this.props.onAddFileNode(filePath);
|
||||
this.props.onAddFileNode(filePath, isDraft);
|
||||
}
|
||||
|
||||
onRenameNode = (newName) => {
|
||||
|
Reference in New Issue
Block a user