gui: split host:port for manually-typed addresses
Build Mumble Web 2 / macos_build (push) Successful in 1m6s
Build Mumble Web 2 / linux_build (push) Successful in 1m20s
Build Mumble Web 2 / windows_build (push) Successful in 2m57s
Build Mumble Web 2 / android_build (push) Successful in 4m39s

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 4ae3077173
commit 1214886250
+14
View File
@@ -889,6 +889,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 {
@@ -1031,6 +1038,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 {