gui: split host:port for manually-typed addresses
Build Mumble Web 2 / macos_build (push) Successful in 1m4s
Build Mumble Web 2 / windows_build (push) Successful in 2m46s
Build Mumble Web 2 / linux_build (push) Successful in 1m24s
Build Mumble Web 2 / android_build (push) Successful in 4m34s

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 c86226b40d
commit e13f71c270
+14
View File
@@ -920,6 +920,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 {
@@ -1061,6 +1068,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 {