mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 19:01:42 +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,
|
userPerm: res.data.user_perm,
|
||||||
isDirentListLoading: false,
|
isDirentListLoading: false,
|
||||||
direntList: Utils.sortDirents(direntList, this.state.sortBy, this.state.sortOrder),
|
direntList: Utils.sortDirents(direntList, this.state.sortBy, this.state.sortOrder),
|
||||||
dirID: res.headers.oid,
|
dirID: res.data.dir_id,
|
||||||
readmeMarkdown: markdownItem,
|
readmeMarkdown: markdownItem,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -254,7 +254,7 @@ class Wiki extends Component {
|
|||||||
userPerm: res.data.user_perm,
|
userPerm: res.data.user_perm,
|
||||||
direntList: Utils.sortDirents(direntList, this.state.sortBy, this.state.sortOrder),
|
direntList: Utils.sortDirents(direntList, this.state.sortBy, this.state.sortOrder),
|
||||||
isDirentListLoading: false,
|
isDirentListLoading: false,
|
||||||
dirID: res.headers.oid,
|
dirID: res.data.dir_id,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!this.state.repoEncrypted && direntList.length) {
|
if (!this.state.repoEncrypted && direntList.length) {
|
||||||
|
@@ -315,6 +315,7 @@ class DirView(APIView):
|
|||||||
|
|
||||||
response_dict = {}
|
response_dict = {}
|
||||||
response_dict["user_perm"] = permission
|
response_dict["user_perm"] = permission
|
||||||
|
response_dict["dir_id"] = dir_id
|
||||||
|
|
||||||
if request_type == 'f':
|
if request_type == 'f':
|
||||||
response_dict['dirent_list'] = all_file_info_list
|
response_dict['dirent_list'] = all_file_info_list
|
||||||
|
Reference in New Issue
Block a user