This commit is contained in:
caishi 2023-08-30 17:11:23 +08:00
parent 79bcb52a34
commit 50276ce1cb
1 changed files with 3 additions and 2 deletions

View File

@ -371,7 +371,8 @@ class MessageCount extends Component {
const userLogin = current_user && current_user.login;
const otherPre = data && data.pull_request && projectDetail && (userLogin === data.pull_request.fork_project_user && projectDetail.permission==="");
const permissionByCodeReview = projectDetail && (projectDetail.permission === "Admin" || projectDetail.permission === "Owner" || projectDetail.permission === "Manager" || projectDetail.permission === "Developer" || otherPre);
const operate = userLogin && projectDetail && pr_status === 0 && ( permission || otherPre);
const operate = userLogin && projectDetail && pr_status === 0 && permission ;
const cancelOperate = userLogin && projectDetail && pr_status === 0 && ( permission || otherPre);
const open_blockchain = project && project.open_blockchain;
return (
<div>
@ -521,7 +522,7 @@ class MessageCount extends Component {
</Button>
)}
{operate && (
{cancelOperate && (
<Button
type="danger"
ghost