mirror of https://github.com/harness/drone.git
fix: [CODE-2903]: Disable the inline merge btn - in case the merge is in progress (#3121)
* fix: [CODE-2903]: Disable the inline merge btn - in case the merge is in progresspull/3597/head
parent
f82dd44d57
commit
3f608cd3db
|
@ -494,7 +494,9 @@ export const PullRequestActionsBox: React.FC<PullRequestActionsBoxProps> = ({
|
|||
type="submit"
|
||||
onClick={handleSubmit}
|
||||
disabled={
|
||||
isMerged || (mergeOption.method === MergeStrategy.FAST_FORWARD && rebasePossible)
|
||||
(loading && !internalFlags.current.dryRun) ||
|
||||
isMerged ||
|
||||
(mergeOption.method === MergeStrategy.FAST_FORWARD && rebasePossible)
|
||||
}
|
||||
variation={ButtonVariation.PRIMARY}
|
||||
text={getString('confirmStrat', { strat: mergeOption.title })}
|
||||
|
|
Loading…
Reference in New Issue