Give the unstaged group of Source control its own title

The Changes section and its unstaged group both showed "Changes (2)".
The group title is now "Unstaged changes (2)". The section title keeps the total count.
This commit is contained in:
Knotty Wyvern
2026-10-30 00:21:43 -07:00
parent d849c3c1b5
commit 424a817c90
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -149,7 +149,7 @@
{#if group.changes.length}
<section class="group">
<div class="group-header">
<h3>{group.staged ? $t("Staged changes ({count})", { count: group.changes.length }) : $t("Changes ({count})", { count: group.changes.length })}</h3>
<h3>{group.staged ? $t("Staged changes ({count})", { count: group.changes.length }) : $t("Unstaged changes ({count})", { count: group.changes.length })}</h3>
<IconButton icon={group.staged ? "minus" : "plus"} label={group.staged ? $t("Unstage all") : $t("Stage all")} disabled={busy} onclick={() => stage(group.changes, group.staged)} />
</div>
{#each group.changes as change (change.path)}