From 81dcc7d94e0a16d635f7f3a1c6f000c321fda288 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 22 Nov 2026 02:23:25 +1100 Subject: [PATCH] fix(ui): let a pending channel link code be cancelled (#2095) --- ui/src/accounts/LinkedChannels.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ui/src/accounts/LinkedChannels.vue b/ui/src/accounts/LinkedChannels.vue index ff57dccb3..a3a6513a5 100644 --- a/ui/src/accounts/LinkedChannels.vue +++ b/ui/src/accounts/LinkedChannels.vue @@ -76,6 +76,12 @@ const begin = (connector: string) => poll(); }); +/** Hides a code the operator no longer wants to use. */ +function cancel(connector: string): void { + delete pending.value[connector]; + if (!waiting.value) stop(); +} + const unlink = (link: ChannelLink) => run(async () => { await api.unlinkChannel(link.connector, link.subject); @@ -99,7 +105,10 @@ onMounted(load);
- +

Scan the code or open the link, then press Start.