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:
@@ -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();
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user