mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-05 03:18:44 +00:00
Add notification count in page title
This commit is contained in:
parent
4ac5022cf1
commit
a57a142328
3 changed files with 3 additions and 1 deletions
|
@ -424,6 +424,7 @@ func (svc *service) ServeNotificationPage(ctx context.Context, c *model.Client,
|
|||
commonData := svc.getCommonData(ctx, c, "notifications")
|
||||
commonData.AutoRefresh = c.Session.Settings.AutoRefreshNotifications
|
||||
commonData.Target = "main"
|
||||
commonData.Count = unreadCount
|
||||
data := &renderer.NotificationData{
|
||||
Notifications: notifications,
|
||||
UnreadCount: unreadCount,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue