| ... | @@ -303,7 +303,7 @@ function getMenuActionDisabledReason({ | ... | @@ -303,7 +303,7 @@ function getMenuActionDisabledReason({ |
| 303 | | 303 | |
| 304 | if (item.id === "push") { | 304 | if (item.id === "push") { |
| 305 | if (!hasBranch) { | 305 | if (!hasBranch) { |
| 306 | return "Detached HEAD: checkout a refName before pushing."; | 306 | return "Detached HEAD: check out a branch before pushing."; |
| 307 | } | 307 | } |
| 308 | if (hasChanges) { | 308 | if (hasChanges) { |
| 309 | return "Commit or stash local changes before pushing."; | 309 | return "Commit or stash local changes before pushing."; |
| ... | @@ -324,7 +324,7 @@ function getMenuActionDisabledReason({ | ... | @@ -324,7 +324,7 @@ function getMenuActionDisabledReason({ |
| 324 | return `View ${terminology.singular} is currently unavailable.`; | 324 | return `View ${terminology.singular} is currently unavailable.`; |
| 325 | } | 325 | } |
| 326 | if (!hasBranch) { | 326 | if (!hasBranch) { |
| 327 | return `Detached HEAD: checkout a refName before creating a ${terminology.singular}.`; | 327 | return `Detached HEAD: check out a branch before creating a ${terminology.singular}.`; |
| 328 | } | 328 | } |
| 329 | if (hasChanges) { | 329 | if (hasChanges) { |
| 330 | return `Commit local changes before creating a ${terminology.singular}.`; | 330 | return `Commit local changes before creating a ${terminology.singular}.`; |
| ... | @@ -1754,7 +1754,7 @@ export default function GitActionsControl({ | ... | @@ -1754,7 +1754,7 @@ export default function GitActionsControl({ |
| 1754 | ) : null} | 1754 | ) : null} |
| 1755 | {gitStatusForActions?.refName === null && ( | 1755 | {gitStatusForActions?.refName === null && ( |
| 1756 | <p className="px-2 py-1.5 text-xs text-warning"> | 1756 | <p className="px-2 py-1.5 text-xs text-warning"> |
| 1757 | Detached HEAD: create and checkout a refName to enable push and pull request | 1757 | Detached HEAD: create and check out a branch to enable push and pull request |
| 1758 | actions. | 1758 | actions. |
| 1759 | </p> | 1759 | </p> |
| 1760 | )} | 1760 | )} |
| ... | @@ -1799,9 +1799,7 @@ export default function GitActionsControl({ | ... | @@ -1799,9 +1799,7 @@ export default function GitActionsControl({ |
| 1799 | <span className="font-medium"> | 1799 | <span className="font-medium"> |
| 1800 | {gitStatusForActions?.refName ?? "(detached HEAD)"} | 1800 | {gitStatusForActions?.refName ?? "(detached HEAD)"} |
| 1801 | </span> | 1801 | </span> |
| 1802 | {isDefaultRef && ( | 1802 | {isDefaultRef && <span className="text-right text-warning">Default branch</span>} |
| 1803 | <span className="text-right text-warning">Warning: default refName</span> | | |
| 1804 | )} | | |
| 1805 | </span> | 1803 | </span> |
| 1806 | </div> | 1804 | </div> |
| 1807 | <div className="space-y-1"> | 1805 | <div className="space-y-1"> |
| ... | @@ -1932,7 +1930,7 @@ export default function GitActionsControl({ | ... | @@ -1932,7 +1930,7 @@ export default function GitActionsControl({ |
| 1932 | disabled={noneSelected} | 1930 | disabled={noneSelected} |
| 1933 | onClick={runDialogActionOnNewBranch} | 1931 | onClick={runDialogActionOnNewBranch} |
| 1934 | > | 1932 | > |
| 1935 | Commit on new refName | 1933 | Commit on new branch |
| 1936 | </Button> | 1934 | </Button> |
| 1937 | <Button size="sm" disabled={noneSelected} onClick={runDialogAction}> | 1935 | <Button size="sm" disabled={noneSelected} onClick={runDialogAction}> |
| 1938 | Commit | 1936 | Commit |
| ... | @@ -1960,7 +1958,7 @@ export default function GitActionsControl({ | ... | @@ -1960,7 +1958,7 @@ export default function GitActionsControl({ |
| 1960 | <DialogPopup className="max-w-xl"> | 1958 | <DialogPopup className="max-w-xl"> |
| 1961 | <DialogHeader> | 1959 | <DialogHeader> |
| 1962 | <DialogTitle> | 1960 | <DialogTitle> |
| 1963 | {pendingDefaultBranchActionCopy?.title ?? "Run action on default refName?"} | 1961 | {pendingDefaultBranchActionCopy?.title ?? "Run action on default branch?"} |
| 1964 | </DialogTitle> | 1962 | </DialogTitle> |
| 1965 | <DialogDescription>{pendingDefaultBranchActionCopy?.description}</DialogDescription> | 1963 | <DialogDescription>{pendingDefaultBranchActionCopy?.description}</DialogDescription> |
| 1966 | </DialogHeader> | 1964 | </DialogHeader> |
| ... | @@ -1986,7 +1984,7 @@ export default function GitActionsControl({ | ... | @@ -1986,7 +1984,7 @@ export default function GitActionsControl({ |
| 1986 | size="sm" | 1984 | size="sm" |
| 1987 | onClick={checkoutFeatureBranchAndContinuePendingAction} | 1985 | onClick={checkoutFeatureBranchAndContinuePendingAction} |
| 1988 | > | 1986 | > |
| 1989 | Checkout feature branch & continue | 1987 | Check out feature branch & continue |
| 1990 | </Button> | 1988 | </Button> |
| 1991 | </DialogFooter> | 1989 | </DialogFooter> |
| 1992 | </DialogPopup> | 1990 | </DialogPopup> |