fix(web): explain what enabling network access means in its confirmation (#10098)
Co-authored-by: shivamhwp <[email protected]>
This commit is contained in:
1 parent
fa1e171553
commit
ead1dee229
1 file changed
+12
-16
@@ -3417,8 +3417,8 @@ export function ConnectionsSettings() {
|
||||
</AlertDialogTitle>
|
||||
<AlertDialogDescription>
|
||||
{pendingDesktopServerExposureMode === "network-accessible"
|
||||
? "T3 Code will restart to expose this environment over the network."
|
||||
: "T3 Code will restart and limit this environment back to this machine."}
|
||||
? "Let your other devices connect to T3 Code over the network. Pair devices to give them access. T3 Code will restart."
|
||||
: "Devices connected over your local network will disconnect. Existing tunnels, such as T3 Connect or Tailscale HTTPS, keep working. T3 Code will restart."}
|
||||
</AlertDialogDescription>
|
||||
</AlertDialogHeader>
|
||||
<AlertDialogFooter>
|
||||
@@ -3426,27 +3426,23 @@ export function ConnectionsSettings() {
|
||||
disabled={isUpdatingDesktopServerExposure}
|
||||
render={<Button variant="outline" disabled={isUpdatingDesktopServerExposure} />}
|
||||
>
|
||||
Cancel
|
||||
<span className="[text-box:trim-both_cap_alphabetic]">Cancel</span>
|
||||
</AlertDialogClose>
|
||||
<Button
|
||||
variant={
|
||||
pendingDesktopServerExposureMode === "local-only" ? "destructive" : "default"
|
||||
}
|
||||
variant="default"
|
||||
onClick={handleConfirmDesktopServerExposureChange}
|
||||
disabled={
|
||||
pendingDesktopServerExposureMode === null || isUpdatingDesktopServerExposure
|
||||
}
|
||||
>
|
||||
{isUpdatingDesktopServerExposure ? (
|
||||
<>
|
||||
<Spinner className="size-3.5" />
|
||||
Restarting…
|
||||
</>
|
||||
) : pendingDesktopServerExposureMode === "network-accessible" ? (
|
||||
"Restart and enable"
|
||||
) : (
|
||||
"Restart and disable"
|
||||
)}
|
||||
{isUpdatingDesktopServerExposure && <Spinner className="size-3.5" />}
|
||||
<span className="[text-box:trim-both_cap_alphabetic]">
|
||||
{isUpdatingDesktopServerExposure
|
||||
? "Restarting…"
|
||||
: pendingDesktopServerExposureMode === "network-accessible"
|
||||
? "Restart and enable"
|
||||
: "Restart and disable"}
|
||||
</span>
|
||||
</Button>
|
||||
</AlertDialogFooter>
|
||||
</AlertDialogPopup>
|
||||
|
||||
Reference in new issue
Block a user