6 Commits

Author SHA1 Message Date
restitux 964f0231ca 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>
2026-05-06 01:21:33 +00:00
restitux f4321b8b9a gui: only split host:port on paste, not on every keystroke
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 01:21:33 +00:00
restitux 42ff29a44a gui: split host:port pasted into address field
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 01:21:33 +00:00
restitux 2ade96fdaf gui: stricter validation in add and edit modals 2026-05-06 01:21:33 +00:00
restitux 00d68ce066 gui: add server add and edit modals 2026-05-06 01:21:24 +00:00
restitux e23f62a4b2 gui: new login screen 2026-05-06 01:20:59 +00:00
+3
View File
@@ -517,6 +517,7 @@ fn ServerCard(
editing_index: Signal<Option<usize>>, editing_index: Signal<Option<usize>>,
overrides: Resource<ProxyOverrides>, overrides: Resource<ProxyOverrides>,
) -> Element { ) -> Element {
let user_config = use_context::<ConfigSystem>();
let net: Coroutine<Command> = use_coroutine_handle(); let net: Coroutine<Command> = use_coroutine_handle();
let address = format!("{}:{}", server.address, server.port); let address = format!("{}:{}", server.address, server.port);
@@ -551,7 +552,9 @@ fn ServerCard(
class: "server-card__action server-card__action--connect", class: "server-card__action server-card__action--connect",
onclick: { onclick: {
let entry = connect_entry.clone(); let entry = connect_entry.clone();
let user_config = user_config.clone();
move |_| { move |_| {
user_config.config_set("username", &entry.username);
net.send(Connect { net.send(Connect {
target: ConnectTarget::Direct { target: ConnectTarget::Direct {
host: entry.address.clone(), host: entry.address.clone(),