Skip to content

Commit bb3740d

Browse files
committed
fix(web): use branch wording in commit dialogs
1 parent 0a37240 commit bb3740d

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

‎apps/web/src/components/GitActionsControl.tsx‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ function getMenuActionDisabledReason({
303303

304304
if (item.id === "push") {
305305
if (!hasBranch) {
306-
return "Detached HEAD: checkout a refName before pushing.";
306+
return "Detached HEAD: check out a branch before pushing.";
307307
}
308308
if (hasChanges) {
309309
return "Commit or stash local changes before pushing.";
@@ -324,7 +324,7 @@ function getMenuActionDisabledReason({
324324
return `View ${terminology.singular} is currently unavailable.`;
325325
}
326326
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}.`;
328328
}
329329
if (hasChanges) {
330330
return `Commit local changes before creating a ${terminology.singular}.`;
@@ -1754,7 +1754,7 @@ export default function GitActionsControl({
17541754
) : null}
17551755
{gitStatusForActions?.refName === null && (
17561756
<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
17581758
actions.
17591759
</p>
17601760
)}
@@ -1799,9 +1799,7 @@ export default function GitActionsControl({
17991799
<span className="font-medium">
18001800
{gitStatusForActions?.refName ?? "(detached HEAD)"}
18011801
</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>}
18051803
</span>
18061804
</div>
18071805
<div className="space-y-1">
@@ -1932,7 +1930,7 @@ export default function GitActionsControl({
19321930
disabled={noneSelected}
19331931
onClick={runDialogActionOnNewBranch}
19341932
>
1935-
Commit on new refName
1933+
Commit on new branch
19361934
</Button>
19371935
<Button size="sm" disabled={noneSelected} onClick={runDialogAction}>
19381936
Commit
@@ -1960,7 +1958,7 @@ export default function GitActionsControl({
19601958
<DialogPopup className="max-w-xl">
19611959
<DialogHeader>
19621960
<DialogTitle>
1963-
{pendingDefaultBranchActionCopy?.title ?? "Run action on default refName?"}
1961+
{pendingDefaultBranchActionCopy?.title ?? "Run action on default branch?"}
19641962
</DialogTitle>
19651963
<DialogDescription>{pendingDefaultBranchActionCopy?.description}</DialogDescription>
19661964
</DialogHeader>

0 commit comments

Comments
 (0)