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:
@@ -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,
|
||||
});
|
||||
|
||||
|
@@ -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) {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user