mirror of
https://github.com/harness/drone.git
synced 2025-05-19 02:20:03 +08:00
Disable Review button when PR is draft (#272)
Co-authored-by: Tan Nhu <tnhu@users.noreply.github.com>
This commit is contained in:
parent
77f1463f2c
commit
c12775862b
@ -195,7 +195,7 @@ export const Changes: React.FC<ChangesProps> = ({
|
|||||||
<ReviewDecisionButton
|
<ReviewDecisionButton
|
||||||
repoMetadata={repoMetadata}
|
repoMetadata={repoMetadata}
|
||||||
pullRequestMetadata={pullRequestMetadata}
|
pullRequestMetadata={pullRequestMetadata}
|
||||||
shouldHide={readOnly || pullRequestMetadata?.state === 'merged'}
|
shouldHide={readOnly || pullRequestMetadata?.state === 'merged' || !!pullRequestMetadata?.is_draft}
|
||||||
/>
|
/>
|
||||||
</Layout.Horizontal>
|
</Layout.Horizontal>
|
||||||
</Container>
|
</Container>
|
||||||
|
@ -414,7 +414,8 @@ export const DiffViewer: React.FC<DiffViewerProps> = ({
|
|||||||
showError,
|
showError,
|
||||||
updateComment,
|
updateComment,
|
||||||
deleteComment,
|
deleteComment,
|
||||||
confirmAct
|
confirmAct,
|
||||||
|
onCommentUpdate
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user