Declare notification View surfaces

This commit is contained in:
2026-07-28 21:04:54 +02:00
parent 9c2dc3efbf
commit 992d2ca533
2 changed files with 42 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ const notificationSettingsSections: SettingsSectionsUiCapability = {
sections: [
{
id: "notifications",
surfaceId: "notifications.settings.preferences",
label: "Notifications",
group: "ui",
order: 40,
@@ -28,6 +29,15 @@ export const notificationsModule: PlatformWebModule = {
dependencies: [],
optionalDependencies: ["mail", "tasks", "portal", "workflow", "calendar", "scheduling"],
translations: generatedTranslations,
viewSurfaces: [
{
id: "notifications.settings.preferences",
moduleId: "notifications",
kind: "section",
label: "Notification preferences",
order: 40
}
],
routes: [
{ path: "/notifications", anyOf: notificationRead, order: 59, render: ({ settings, auth }) => createElement(NotificationCenterPage, { settings, auth }) }
],