Skip to content

Commit 867b2ac

Browse files
committed
fix(web): device host test toast hides an address-valued label
1 parent e01dc53 commit 867b2ac

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/web/src/components/settings/DeviceHostsSettings.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,12 @@ export function DeviceHostsSettings(props: { environmentId: EnvironmentId | null
131131
const failed = targets.filter(
132132
(target) => results[target.environmentId]?.status === "failed",
133133
);
134+
const label = isSshNetworkAddress(host.label) ? "Device host" : host.label;
134135
toastManager.add({
135136
type: failed.length ? "error" : "success",
136137
title: failed.length
137-
? `${host.label}: ${failed.length} of ${targets.length} environments failed`
138-
: `${host.label}: connection checks passed`,
138+
? `${label}: ${failed.length} of ${targets.length} environments failed`
139+
: `${label}: connection checks passed`,
139140
description: failed.length
140141
? `Could not connect from ${failed.map((target) => target.label).join(", ")}.`
141142
: "Connected or already available locally on each selected environment.",

0 commit comments

Comments
 (0)