gui: split host:port for manually-typed addresses
Build Mumble Web 2 / macos_build (push) Successful in 1m8s
Build Mumble Web 2 / linux_build (push) Successful in 1m22s
Build Mumble Web 2 / windows_build (push) Successful in 2m55s
Build Mumble Web 2 / android_build (push) Successful in 4m42s

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 2c5af5e301
commit 4131955d1a
+14
View File
@@ -920,6 +920,13 @@ fn AddServerModal(on_save: EventHandler<ServerEntry>, on_cancel: EventHandler<()
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,
}
div {
@@ -1061,6 +1068,13 @@ fn EditServerModal(
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,
}
div {