mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 02:10:24 +00:00
repair share dir upload bug
This commit is contained in:
@@ -20,7 +20,7 @@ moment.locale(window.app.config.lang);
|
|||||||
|
|
||||||
let loginUser = window.app.pageOptions.name;
|
let loginUser = window.app.pageOptions.name;
|
||||||
const {
|
const {
|
||||||
token, dirName, sharedBy,
|
token, dirName, dirPath, sharedBy,
|
||||||
repoID, path,
|
repoID, path,
|
||||||
mode, thumbnailSize, zipped,
|
mode, thumbnailSize, zipped,
|
||||||
trafficOverLimit, canDownload,
|
trafficOverLimit, canDownload,
|
||||||
@@ -309,7 +309,7 @@ class SharedDirView extends React.Component {
|
|||||||
ref={uploader => this.uploader = uploader}
|
ref={uploader => this.uploader = uploader}
|
||||||
dragAndDrop={false}
|
dragAndDrop={false}
|
||||||
token={token}
|
token={token}
|
||||||
path={path}
|
path={dirPath}
|
||||||
repoID={repoID}
|
repoID={repoID}
|
||||||
onFileUploadSuccess={this.onFileUploadSuccess}
|
onFileUploadSuccess={this.onFileUploadSuccess}
|
||||||
/>
|
/>
|
||||||
|
@@ -20,6 +20,7 @@
|
|||||||
window.shared = {
|
window.shared = {
|
||||||
pageOptions: {
|
pageOptions: {
|
||||||
dirName: '{{ dir_name|escapejs }}',
|
dirName: '{{ dir_name|escapejs }}',
|
||||||
|
dirPath: '{{ dir_path|escapejs }}',
|
||||||
sharedBy: '{{ username|email2nickname|escapejs }}',
|
sharedBy: '{{ username|email2nickname|escapejs }}',
|
||||||
repoID: '{{repo.id}}',
|
repoID: '{{repo.id}}',
|
||||||
path: '{{ path|escapejs }}',
|
path: '{{ path|escapejs }}',
|
||||||
|
@@ -344,6 +344,7 @@ def view_shared_dir(request, fileshare):
|
|||||||
'path': req_path,
|
'path': req_path,
|
||||||
'username': username,
|
'username': username,
|
||||||
'dir_name': dir_name,
|
'dir_name': dir_name,
|
||||||
|
'dir_path': real_path,
|
||||||
'file_list': file_list,
|
'file_list': file_list,
|
||||||
'dir_list': dir_list,
|
'dir_list': dir_list,
|
||||||
'zipped': zipped,
|
'zipped': zipped,
|
||||||
|
Reference in New Issue
Block a user