mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-09-09 11:21:50 +02:00
fix(import): parenthesize the number on a taken workspace name
"Name 2" reads as part of the name; "Name (2)" reads as the second one. The destination row leads with "New workspace ·" rather than trailing a second parenthetical after it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
83f2606624
commit
cdc034b25a
@@ -312,7 +312,7 @@ function LoadedImportDataDialog({
|
||||
if (plan.destination.type === "new_workspace") {
|
||||
const names = plan.resources.workspaces.map((w) => w.name).filter((n) => n !== "");
|
||||
if (names.length > 1) return pluralizeCount("new workspace", names.length);
|
||||
return names[0] == null ? "New workspace" : `${names[0]} (new workspace)`;
|
||||
return names[0] == null ? "New workspace" : `New workspace · ${names[0]}`;
|
||||
}
|
||||
const { workspaceId, folderId } = plan.destination;
|
||||
const name = workspaces.find((w) => w.id === workspaceId)?.name ?? "Unknown workspace";
|
||||
|
||||
Reference in New Issue
Block a user