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