forked from Gitlink/forgeplus-react
commit隐藏编辑文件按钮
This commit is contained in:
commit
eafd40a6ff
|
@ -54,6 +54,11 @@ class CoderRootFileDetail extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
isCommit = () => {
|
||||
const {detail, branch} = this.props;
|
||||
return detail && detail.commit && detail.commit.sha.includes(branch)
|
||||
}
|
||||
|
||||
// 更新网页标题
|
||||
updateDocumentTitle(){
|
||||
const {projectDetail, treeValuePath, location} = this.props;
|
||||
|
@ -300,7 +305,7 @@ class CoderRootFileDetail extends Component {
|
|||
</span>
|
||||
</div>
|
||||
<p className="text-right">
|
||||
{flag && platform && (
|
||||
{flag && platform && !this.isCommit() && (
|
||||
<div>
|
||||
{readOnly ? (
|
||||
<span>
|
||||
|
|
Loading…
Reference in New Issue