feat(settings): Notifications invited-to-collection/export-completed toggles
This commit is contained in:
@@ -631,6 +631,20 @@ struct SettingsView: View {
|
||||
isOn: session.userNotificationSettings?[NotificationEventType.documentAddUser.rawValue] ?? false,
|
||||
onChange: { newValue in Task { await setNotifications([.documentAddUser], subscribed: newValue) } }
|
||||
)
|
||||
Divider()
|
||||
notificationToggleRow(
|
||||
"Invited to collection",
|
||||
description: "Receive a notification when you are given access to a collection",
|
||||
isOn: session.userNotificationSettings?[NotificationEventType.collectionAddUser.rawValue] ?? false,
|
||||
onChange: { newValue in Task { await setNotifications([.collectionAddUser], subscribed: newValue) } }
|
||||
)
|
||||
Divider()
|
||||
notificationToggleRow(
|
||||
"Export completed",
|
||||
description: "Receive a notification when an export you requested has been completed",
|
||||
isOn: session.userNotificationSettings?[NotificationEventType.emailsExportCompleted.rawValue] ?? false,
|
||||
onChange: { newValue in Task { await setNotifications([.emailsExportCompleted], subscribed: newValue) } }
|
||||
)
|
||||
|
||||
if let notificationsErrorMessage {
|
||||
Text(notificationsErrorMessage)
|
||||
|
||||
Reference in New Issue
Block a user