1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

[fix] readme (#2858)

This commit is contained in:
Michael An
2019-01-19 17:45:28 +08:00
committed by Daniel Pan
parent db5a7481de
commit a0f1bbf445
2 changed files with 4 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ import { gettext } from '../../utils/constants';
const propTypes = {
repoID: PropTypes.string.isRequired,
filePath: PropTypes.string.isRequired,
fileName: PropTypes.string.isRequired,
href: PropTypes.string,
toggleCancel: PropTypes.func.isRequired,
};
@@ -37,7 +38,7 @@ class ReadmeDialog extends React.Component {
render() {
return (
<Modal isOpen={true} className="readme-dialog" size="lg">
<ModalHeader>{gettext('Readme.md')}
<ModalHeader>{gettext(this.props.fileName)}
<a className="readme-dialog-edit" href={this.props.href} target='_blank'><i className="fa fa-pencil"></i></a>
</ModalHeader>
<ModalBody>