mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-27 23:56:18 +00:00
Fix download python file bug (#6736)
* fix download py file bug * download in current tab
This commit is contained in:
@@ -162,7 +162,6 @@ class FileToolbar extends React.Component {
|
||||
id="download-file"
|
||||
icon="download"
|
||||
text={gettext('Download')}
|
||||
tag="a"
|
||||
href="?dl=1"
|
||||
/>
|
||||
)}
|
||||
@@ -177,7 +176,6 @@ class FileToolbar extends React.Component {
|
||||
id="open-via-client"
|
||||
icon="client"
|
||||
text={gettext('Open via Client')}
|
||||
tag="a"
|
||||
href={`seafile://openfile?repo_id=${encodeURIComponent(repoID)}&path=${encodeURIComponent(filePath)}`}
|
||||
/>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user