feat(settings): Notifications document-access-requested toggle

Closes out the Notifications page — all 13 event toggles + the All
notifications master toggle now wired.
This commit is contained in:
2026-08-17 21:53:06 +01:00
parent 2fc279c3ce
commit 6a2d5c9be6
@@ -645,6 +645,13 @@ struct SettingsView: View {
isOn: session.userNotificationSettings?[NotificationEventType.emailsExportCompleted.rawValue] ?? false,
onChange: { newValue in Task { await setNotifications([.emailsExportCompleted], subscribed: newValue) } }
)
Divider()
notificationToggleRow(
"Document access requested",
description: "Receive a notification when a user requests access to a document you manage",
isOn: session.userNotificationSettings?[NotificationEventType.accessRequestCreate.rawValue] ?? false,
onChange: { newValue in Task { await setNotifications([.accessRequestCreate], subscribed: newValue) } }
)
if let notificationsErrorMessage {
Text(notificationsErrorMessage)