Skip to content

Commit 7181ce6

Browse files
author
Dennis Braun
committed
Fix event badge not updating after acknowledge and on dashboard refresh
1 parent 9fd826c commit 7181ce6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/templates/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,6 +1912,12 @@ <h2>{{ t.export_title }}</h2>
19121912

19131913
// Re-init sortable tables (event listeners lost on innerHTML replace)
19141914
initSortableTables();
1915+
1916+
// Refresh event badge count
1917+
fetch('/api/events/count')
1918+
.then(function(r) { return r.json(); })
1919+
.then(function(d) { updateEventBadge(d.count || 0); })
1920+
.catch(function() {});
19151921
})
19161922
.catch(function(err) {
19171923
console.warn('Auto-refresh failed:', err);

0 commit comments

Comments
 (0)