gui: split host:port for manually-typed addresses
Build Mumble Web 2 / macos_build (push) Successful in 1m17s
Build Mumble Web 2 / linux_build (push) Successful in 1m26s
Build Mumble Web 2 / windows_build (push) Successful in 3m24s
Build Mumble Web 2 / android_build (push) Successful in 4m49s

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-05 06:40:32 +00:00
committed by Sam Sartor
parent f4321b8b9a
commit 964f0231ca
+14
View File
@@ -923,6 +923,13 @@ fn AddServerModal(on_save: EventHandler<ServerEntry>, on_cancel: EventHandler<()
address.set(evt.value()); address.set(evt.value());
} }
}, },
onblur: move |_| {
let (host, maybe_port) = split_host_port(&address.read());
if let Some(p) = maybe_port {
address.set(host);
port.set(p);
}
},
required: true, required: true,
} }
div { div {
@@ -1064,6 +1071,13 @@ fn EditServerModal(
address.set(evt.value()); address.set(evt.value());
} }
}, },
onblur: move |_| {
let (host, maybe_port) = split_host_port(&address.read());
if let Some(p) = maybe_port {
address.set(host);
port.set(p);
}
},
required: true, required: true,
} }
div { div {