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:
@@ -645,6 +645,13 @@ struct SettingsView: View {
|
|||||||
isOn: session.userNotificationSettings?[NotificationEventType.emailsExportCompleted.rawValue] ?? false,
|
isOn: session.userNotificationSettings?[NotificationEventType.emailsExportCompleted.rawValue] ?? false,
|
||||||
onChange: { newValue in Task { await setNotifications([.emailsExportCompleted], subscribed: newValue) } }
|
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 {
|
if let notificationsErrorMessage {
|
||||||
Text(notificationsErrorMessage)
|
Text(notificationsErrorMessage)
|
||||||
|
|||||||
Reference in New Issue
Block a user