mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 23:29:49 +00:00
add-download-url (#6771)
* add-download-url * update unitest * update * update * update * update * Update test_view_lib_file.py * code-optimize * Update shared-dir-view.js * code-optimize
This commit is contained in:
@@ -28,6 +28,7 @@ const {
|
||||
canEditFile, err,
|
||||
// fileEnc, // for 'edit', not undefined only for some kinds of files (e.g. text file)
|
||||
canDownloadFile,
|
||||
fileDownloadURL,
|
||||
} = window.app.pageOptions;
|
||||
|
||||
class FileToolbar extends React.Component {
|
||||
@@ -162,7 +163,7 @@ class FileToolbar extends React.Component {
|
||||
id="download-file"
|
||||
icon="download"
|
||||
text={gettext('Download')}
|
||||
href="?dl=1"
|
||||
href={fileDownloadURL}
|
||||
/>
|
||||
)}
|
||||
<IconButton
|
||||
|
Reference in New Issue
Block a user