summaryrefslogtreecommitdiff
path: root/Hutch/Views/Work
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-20 13:04:57 -0500
committerChristian Cleberg <[email protected]>2026-04-20 13:04:57 -0500
commit8b73fd9cd43753b36b3ab3ca5e4dc83a47ea3480 (patch)
tree25658dbdc28775764f5745576c240efd38fd4685 /Hutch/Views/Work
parentd29fbef60abdffaee190b758530dde9212745ed2 (diff)
downloadhutch-8b73fd9cd43753b36b3ab3ca5e4dc83a47ea3480.tar.gz
hutch-8b73fd9cd43753b36b3ab3ca5e4dc83a47ea3480.tar.bz2
hutch-8b73fd9cd43753b36b3ab3ca5e4dc83a47ea3480.zip
fix: add mark all read actions and avoid resending unchanged repo metadata
Diffstat (limited to 'Hutch/Views/Work')
-rw-r--r--Hutch/Views/Work/WorkView.swift8
1 files changed, 8 insertions, 0 deletions
diff --git a/Hutch/Views/Work/WorkView.swift b/Hutch/Views/Work/WorkView.swift
index 2326236..8b932dd 100644
--- a/Hutch/Views/Work/WorkView.swift
+++ b/Hutch/Views/Work/WorkView.swift
@@ -26,6 +26,14 @@ struct WorkView: View {
}
.navigationTitle("Work")
.navigationBarTitleDisplayMode(.inline)
+ .toolbar {
+ ToolbarItem(placement: .topBarTrailing) {
+ Button("Mark All Read") {
+ viewModel?.markAllInboxThreadsRead()
+ }
+ .disabled(viewModel.map { unreadCount($0) } ?? 0 == 0)
+ }
+ }
.task {
guard let currentUser = appState.currentUser else { return }
await ensureViewModel(currentUser: currentUser).loadDashboard()