summaryrefslogtreecommitdiffstats
path: root/templates/user/notification
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-07-17 17:18:10 +0100
committerGitHub <noreply@github.com>2021-07-17 17:18:10 +0100
commit93f31e1897562a588bed1227e46d1a5b34f52524 (patch)
treee7effbf4073f92b60dbf3db08ac4f1a1ea5fb1b9 /templates/user/notification
parentb08e14bbcf1b30c5266d89f6fdcc3a6cfa0324fa (diff)
downloadgitea-93f31e1897562a588bed1227e46d1a5b34f52524.tar.gz
gitea-93f31e1897562a588bed1227e46d1a5b34f52524.zip
Update notification table with only latest data (#16445)
When marking notifications read the results may be returned out of order or be delayed. This PR sends a sequence number to gitea so that the browser can ensure that only the results of the latest notification change are shown. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'templates/user/notification')
-rw-r--r--templates/user/notification/notification_div.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/notification/notification_div.tmpl b/templates/user/notification/notification_div.tmpl
index e7327d34bb..8976e1fda4 100644
--- a/templates/user/notification/notification_div.tmpl
+++ b/templates/user/notification/notification_div.tmpl
@@ -1,4 +1,4 @@
-<div class="page-content user notification" id="notification_div" data-params="{{.Page.GetParams}}">
+<div class="page-content user notification" id="notification_div" data-params="{{.Page.GetParams}}" data-sequence-number="{{.SequenceNumber}}">
<div class="ui container">
<h1 class="ui dividing header">{{.i18n.Tr "notification.notifications"}}</h1>
<div class="ui top attached tabular menu">