(
null,
);
- const copy = getPlatformCopy(platform, hostName);
+ const copy = getPlatformCopy(platform, selectedHostName);
const placeholder =
target.kind === "update"
? target.currentPath || copy.placeholder
: copy.placeholder;
- const selectedPath = hostId
+ const selectedPath = selectedHostId
? browserDirectory
: normalizeProjectPathInput(manualPath) || null;
const derivedProjectName = selectedPath
@@ -195,7 +224,7 @@ export function ProjectPathDialogContent({
return;
}
- void onSubmit(target, normalizedPath);
+ void onSubmit(target, normalizedPath, selectedHostId);
};
return (
@@ -203,20 +232,67 @@ export function ProjectPathDialogContent({
{getDialogTitle(target.kind)}
- {hostId
+ {selectedHostId
? `Browse to the project folder${
- hostName ? ` on ${hostName}` : ""
+ selectedHostName ? ` on ${selectedHostName}` : ""
}, or edit the path directly.`
: copy.description}