mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-07 01:41:39 +00:00
[fix] edit-mode (#2862)
This commit is contained in:
@@ -65,7 +65,7 @@ class RepoInfoBar extends React.Component {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
let {repoID, currentPath, usedRepoTags, readmeMarkdown} = this.props;
|
let {repoID, currentPath, usedRepoTags, readmeMarkdown} = this.props;
|
||||||
let href = readmeMarkdown !== null ? siteRoot + 'lib/' + repoID + '/file' + Utils.joinPath(currentPath, readmeMarkdown.name) : '';
|
let href = readmeMarkdown !== null ? siteRoot + 'lib/' + repoID + '/file' + Utils.joinPath(currentPath, readmeMarkdown.name) + '?mode=edit' : '';
|
||||||
let filePath = readmeMarkdown !== null ? currentPath + readmeMarkdown.name : '';
|
let filePath = readmeMarkdown !== null ? currentPath + readmeMarkdown.name : '';
|
||||||
return (
|
return (
|
||||||
<div className="repo-info-bar">
|
<div className="repo-info-bar">
|
||||||
|
Reference in New Issue
Block a user