Datenbank bereinigt / Gitea-Integration gefixt
Dieser Commit ist enthalten in:
committet von
Server Deploy
Ursprung
395598c2b0
Commit
c21be47428
@ -122,6 +122,13 @@ class NotificationManager {
|
||||
updateBadge(count) {
|
||||
this.unreadCount = count;
|
||||
|
||||
// Sicherstellen, dass badge-Element existiert
|
||||
if (!this.badge) {
|
||||
this.badge = document.getElementById('notification-badge');
|
||||
}
|
||||
|
||||
if (!this.badge) return; // Wenn immer noch nicht gefunden, abbrechen
|
||||
|
||||
if (count > 0) {
|
||||
this.badge.textContent = count > 99 ? '99+' : count;
|
||||
this.badge.classList.remove('hidden');
|
||||
@ -441,6 +448,12 @@ class NotificationManager {
|
||||
this.unreadCount = 0;
|
||||
this.isDropdownOpen = false;
|
||||
this.closeDropdown();
|
||||
|
||||
// Elements neu binden falls nötig
|
||||
if (!this.badge || !this.bellContainer) {
|
||||
this.bindElements();
|
||||
}
|
||||
|
||||
this.render();
|
||||
}
|
||||
}
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren