| ... | ... | @@ -272,9 +272,9 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp |
| 272 | 272 | const prUrl = result.pr.url ?? gitStatus?.openPr?.url; |
| 273 | 273 | const shouldOfferPushCta = action === "commit" && result.commit.status === "created"; |
| 274 | 274 | const shouldOfferOpenPrCta = |
| 275 | | (action === "commit_push" || action === "commit_push_pr") && !!prUrl; |
| 275 | (action === "commit_push" || action === "commit_push_pr") && !!prUrl && !isDefaultBranch; |
| 276 | 276 | const shouldOfferCreatePrCta = |
| 277 | | action === "commit_push" && !prUrl && result.push.status === "pushed"; |
| 277 | action === "commit_push" && !prUrl && result.push.status === "pushed" && !isDefaultBranch; |
| 278 | 278 | const closeResultToast = () => { |
| 279 | 279 | toastManager.close(progressToastId); |
| 280 | 280 | }; |
| ... | ... | @@ -329,6 +329,7 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp |
| 329 | 329 | api, |
| 330 | 330 | gitStatus?.hasWorkingTreeChanges, |
| 331 | 331 | gitStatus?.openPr?.url, |
| 332 | isDefaultBranch, |
| 332 | 333 | maybeConfirmPushToDefaultBranch, |
| 333 | 334 | runImmediateGitActionMutation, |
| 334 | 335 | setActiveDialogAction, |
| ... | ... | @@ -449,7 +450,7 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp |
| 449 | 450 | render={ |
| 450 | 451 | <Button |
| 451 | 452 | aria-disabled="true" |
| 452 | | className="cursor-not-allowed opacity-64" |
| 453 | className="cursor-not-allowed rounded-e-none border-e-0 opacity-64 before:rounded-e-none" |
| 453 | 454 | size="xs" |
| 454 | 455 | variant="outline" |
| 455 | 456 | /> |