1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

repair create file bug

This commit is contained in:
shanshuirenjia
2018-12-06 15:01:40 +08:00
parent fc3b1d5b77
commit d29051b5d2
2 changed files with 2 additions and 2 deletions

View File

@@ -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');

View 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>