diff --git a/server/static/dashboard.html b/server/static/dashboard.html
index 3b45c93..71013c2 100644
--- a/server/static/dashboard.html
+++ b/server/static/dashboard.html
@@ -452,12 +452,18 @@
const created = new Date(code.created_at).toLocaleString();
const statusClass = code.status === "pending" ? "badge-warning" :
code.status === "connected" ? "badge-success" : "badge-muted";
+ const clientInfo = code.status === "connected" && code.client_name
+ ? '
' + code.client_name + '
'
+ : '';
+ const actionBtn = code.status === "connected"
+ ? ''
+ : '';
return '' +
- '| ' + code.code + ' | ' +
+ '' + code.code + '' + clientInfo + ' | ' +
'' + code.status + ' | ' +
'' + created + ' | ' +
'' + (code.created_by || "Unknown") + ' | ' +
- ' | ' +
+ '' + actionBtn + ' | ' +
'
';
}).join("");
} catch (err) {
@@ -475,7 +481,14 @@
}
}
+ function joinSession(sessionId) {
+ // TODO: Open viewer in new window
+ alert("Viewer not yet implemented.\\n\\nSession ID: " + sessionId + "\\n\\nWebSocket: wss://connect.azcomputerguru.com/ws/viewer?session_id=" + sessionId);
+ }
+
+ // Initial load and auto-refresh every 3 seconds
loadSessions();
+ setInterval(loadSessions, 3000);
// Load connected machines (Access tab)
let machines = [];