feat: status includes is_admin, gear icon in header for admins

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-01 20:45:33 +02:00
parent 2376bf5d71
commit 81fbbfb56e
4 changed files with 30 additions and 1 deletions
+8
View File
@@ -181,6 +181,14 @@ async function loadTranscripts() {
if (data.username) {
userChip.textContent = data.username;
}
if (data.is_admin) {
const gearLink = document.createElement('a');
gearLink.href = '/settings';
gearLink.className = 'back-btn';
gearLink.title = 'Einstellungen';
gearLink.textContent = '\u2699';
document.querySelector('.header-right').prepend(gearLink);
}
connectWs();
loadTranscripts();
})();