mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Add mark all as read action to notifications list
Shows a done_all icon button in the AppBar when the New filter is active and the list is non-empty, calling the notifications/mark_all_as_old endpoint. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
bda7b87cc7
commit
6002597383
@@ -76,6 +76,11 @@ class BackendAPI {
|
||||
await _dio.post('/notifications/$id/mark_as_new');
|
||||
}
|
||||
|
||||
Future<void> markAllNotificationsAsRead() async {
|
||||
print('About to call /notifications/mark_all_as_old');
|
||||
await _dio.post('/notifications/mark_all_as_old');
|
||||
}
|
||||
|
||||
Future<List<Notification>> listNotifications(bool? isNew, int offset) async {
|
||||
print('About to call /notifications');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user