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
|
||||
repoMetadata={repoMetadata}
|
||||
pullRequestMetadata={pullRequestMetadata}
|
||||
shouldHide={readOnly || pullRequestMetadata?.state === 'merged'}
|
||||
shouldHide={readOnly || pullRequestMetadata?.state === 'merged' || !!pullRequestMetadata?.is_draft}
|
||||
/>
|
||||
</Layout.Horizontal>
|
||||
</Container>
|
||||
|
@ -414,7 +414,8 @@ export const DiffViewer: React.FC<DiffViewerProps> = ({
|
||||
showError,
|
||||
updateComment,
|
||||
deleteComment,
|
||||
confirmAct
|
||||
confirmAct,
|
||||
onCommentUpdate
|
||||
]
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user