From b0fc98d06476fe18126e1a1a49e1679de21419d4 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 12 Mar 2026 22:47:55 -0700 Subject: [PATCH] fix(portal): fix JS syntax error that prevented login() from being defined (#587) Co-authored-by: Letta Code --- src/api/portal.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/portal.html b/src/api/portal.html index 8886097..30c11d1 100644 --- a/src/api/portal.html +++ b/src/api/portal.html @@ -157,10 +157,10 @@ function renderTabs() { const n = (data[ch] || []).length; const cls = ch === activeTab ? 'tab active' : 'tab'; const count = n > 0 ? '' + n + '' : ''; - return '
' + ch.charAt(0).toUpperCase() + ch.slice(1) + count + '
'; + return '
' + ch.charAt(0).toUpperCase() + ch.slice(1) + count + '
'; }).join(''); const statusCls = activeTab === '__status__' ? 'tab active' : 'tab'; - html += '
Status
'; + html += '
Status
'; el.innerHTML = html; } @@ -176,7 +176,7 @@ function renderList() { el.innerHTML = items.map(r => { const name = r.meta?.username ? '@' + r.meta.username : r.meta?.firstName || 'User ' + r.id; const ago = timeAgo(r.createdAt); - return '
' + esc(r.code) + '
' + esc(name) + '
' + ago + '
'; + return '
' + esc(r.code) + '
' + esc(name) + '
' + ago + '
'; }).join(''); } @@ -213,7 +213,7 @@ function renderStatus() { const summary = c.summary ? esc(c.summary) : ''; const msgs = c.messageCount ? c.messageCount + ' msgs' : ''; const ago = c.updatedAt ? timeAgo(c.updatedAt) : ''; - html += '
'; + html += '
'; html += '
' + esc(c.id) + '
'; html += '
' + (summary || ago) + '
'; html += '
' + msgs + '
';