1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

[fix bug] repo update toast (#3058)

This commit is contained in:
王健辉
2019-03-06 14:59:24 +08:00
committed by Daniel Pan
parent 0392d5cff7
commit 8a641ba298
3 changed files with 3 additions and 2 deletions

View File

@@ -344,7 +344,7 @@ class LibContentView extends React.Component {
userPerm: res.data.user_perm,
isDirentListLoading: false,
direntList: Utils.sortDirents(direntList, this.state.sortBy, this.state.sortOrder),
dirID: res.headers.oid,
dirID: res.data.dir_id,
readmeMarkdown: markdownItem,
});

View File

@@ -254,7 +254,7 @@ class Wiki extends Component {
userPerm: res.data.user_perm,
direntList: Utils.sortDirents(direntList, this.state.sortBy, this.state.sortOrder),
isDirentListLoading: false,
dirID: res.headers.oid,
dirID: res.data.dir_id,
});
if (!this.state.repoEncrypted && direntList.length) {

View File

@@ -315,6 +315,7 @@ class DirView(APIView):
response_dict = {}
response_dict["user_perm"] = permission
response_dict["dir_id"] = dir_id
if request_type == 'f':
response_dict['dirent_list'] = all_file_info_list