fix: Notification count is incorrect when the number of notifications exceeds the page size. (#8723)
- The notification count is incorrect when the number of notifications exceeds the page size.
This commit is contained in:
@@ -9,7 +9,7 @@ class Api::V1::Accounts::NotificationsController < Api::V1::Accounts::BaseContro
|
|||||||
def index
|
def index
|
||||||
@unread_count = notification_finder.unread_count
|
@unread_count = notification_finder.unread_count
|
||||||
@notifications = notification_finder.perform
|
@notifications = notification_finder.perform
|
||||||
@count = @notifications.count
|
@count = notification_finder.count
|
||||||
end
|
end
|
||||||
|
|
||||||
def read_all
|
def read_all
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<table-footer
|
<table-footer
|
||||||
:current-page="Number(meta.currentPage)"
|
:current-page="Number(meta.currentPage)"
|
||||||
:total-count="meta.count"
|
:total-count="meta.count"
|
||||||
|
:page-size="15"
|
||||||
@page-change="onPageChange"
|
@page-change="onPageChange"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user