diff --git a/admin_ui/index.html b/admin_ui/index.html
index 221c830..4ef29f5 100644
--- a/admin_ui/index.html
+++ b/admin_ui/index.html
@@ -166,6 +166,22 @@
}
});
+ // Plain-link confirmation prompt. HTMX has hx-confirm for its own
+ // requests; this is the equivalent for raw `` anchors that
+ // can't go through HTMX (e.g. "Connect (web client)", which opens
+ // a new tab and triggers a popup on the controlled machine — easy
+ // to fire by accident from the row action menu). Use:
+ //
+ //
+ //
+ // The message lives in the data-attribute (only HTML-escaped, no
+ // JS-string escaping) which keeps the server-side renderer simple.
+ function confirmFromDataAttr(el) {
+ const msg = el && el.dataset ? el.dataset.confirm : '';
+ return !msg || window.confirm(msg);
+ }
+ window.confirmFromDataAttr = confirmFromDataAttr;
+
// Close any open per-row action popover when a click happens outside it.
// The action dropdowns are with an
// absolutely-positioned panel; the deploy page uses too but
diff --git a/src/api/admin/i18n.rs b/src/api/admin/i18n.rs
index f812131..bf54049 100644
--- a/src/api/admin/i18n.rs
+++ b/src/api/admin/i18n.rs
@@ -871,6 +871,13 @@ pub fn t(lang: Lang, key: &str) -> &'static str {
"Deconectați toate sesiunile active de pe {0}?",
"¿Desconectar todas las sesiones activas en {0}?",
),
+ "devices.confirm_connect" => (
+ "Open a remote-support session to {0}? The user on that device will see an approval prompt.",
+ "Remote-Support-Sitzung zu {0} öffnen? Der Benutzer auf diesem Gerät erhält eine Bestätigungsaufforderung.",
+ "Ouvrir une session d'assistance à distance vers {0} ? L'utilisateur sur cet appareil verra une invite d'approbation.",
+ "Deschideți o sesiune de asistență la distanță către {0}? Utilizatorul de pe acel dispozitiv va vedea o solicitare de aprobare.",
+ "¿Abrir una sesión de asistencia remota a {0}? El usuario de ese dispositivo verá una solicitud de aprobación.",
+ ),
"devices.delete_device" => (
"Delete device",
"Gerät löschen",
diff --git a/src/api/admin/pages/devices.rs b/src/api/admin/pages/devices.rs
index e82d4ac..f4e773d 100644
--- a/src/api/admin/pages/devices.rs
+++ b/src/api/admin/pages/devices.rs
@@ -1069,7 +1069,9 @@ fn render_device_row(
···