mirror of https://github.com/harness/drone.git
fix: [code-2141]: fix icon color and merge option (#2291)
* fix: [code-2141]: fix icon color and merge optionpull/3545/head
parent
81fcd524c8
commit
eeb4c50af1
|
@ -209,9 +209,9 @@ export const PullRequestActionsBox: React.FC<PullRequestActionsBoxProps> = ({
|
|||
if (allowedStrats) {
|
||||
const matchingMethods = mergeOptions.filter(option => allowedStrats.includes(option.method))
|
||||
if (matchingMethods.length > 0) {
|
||||
if (mergeOption && !matchingMethods.includes(mergeOption)) {
|
||||
if (!matchingMethods.includes(mergeOption)) {
|
||||
setMergeOption(matchingMethods[0])
|
||||
} else {
|
||||
} else if (mergeOption) {
|
||||
setMergeOption(mergeOption)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -227,6 +227,7 @@ const ChangesSection = (props: ChangesSectionProps) => {
|
|||
title = getString('requestChanges')
|
||||
statusMessage = getString('pr.requestedChanges', { user: changeReqReviewer })
|
||||
statusIcon = 'warning-icon'
|
||||
isNotRequired = true
|
||||
} else if (approvedEvaluations?.length && approvedEvaluations?.length > 0) {
|
||||
title = getString('changesSection.changesApproved')
|
||||
statusMessage = stringSubstitute(getString('changesSection.changesAppByRev')) as string
|
||||
|
|
Loading…
Reference in New Issue