mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 22:54:11 +00:00
repair create file bug
This commit is contained in:
@@ -108,7 +108,7 @@ class DirView extends React.Component {
|
||||
|
||||
onAddFile = (filePath, isDraft) => {
|
||||
let repoID = this.state.repoID;
|
||||
seafileAPI.createDir(repoID, filePath).then(() => {
|
||||
seafileAPI.createFile(repoID, filePath, isDraft).then(() => {
|
||||
let name = Utils.getFileName(filePath);
|
||||
let dirent = this.createDirent(name, 'file');
|
||||
let direntList = this.addItem(dirent, 'file');
|
||||
|
@@ -59,7 +59,7 @@ class Content extends Component {
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="4%"><span className="sr-only">{gettext("Library Type")}</span></th>
|
||||
<th width="42%%">{gettext("Name")}<a className="table-sort-op by-name" href="#">{/*TODO: sort*/}<span className="sort-icon icon-caret-down hide"></span></a></th>
|
||||
<th width="42%">{gettext("Name")}<a className="table-sort-op by-name" href="#">{/*TODO: sort*/}<span className="sort-icon icon-caret-down hide"></span></a></th>
|
||||
<th width="14%"><span className="sr-only">{gettext("Actions")}</span></th>
|
||||
|
||||
<th width={showStorageBackend ? '15%' : '20%'}>{gettext("Size")}</th>
|
||||
|
Reference in New Issue
Block a user