3
0

Add option to disable on record save notifications per record page

This commit is contained in:
Jože Fortun
2024-02-23 16:42:20 +01:00
parent 4638f1d003
commit 32edb8ef2f
6 changed files with 32 additions and 4 deletions

View File

@@ -624,6 +624,11 @@ func (svc page) handleUpdate(ctx context.Context, upd *types.Page) pageUpdateHan
changes |= pageChanged
}
if !reflect.DeepEqual(res.Meta.Notifications, upd.Meta.Notifications) {
res.Meta.Notifications = upd.Meta.Notifications
changes |= pageChanged
}
if res.Title != upd.Title {
res.Title = upd.Title
changes |= pageChanged

View File

@@ -77,6 +77,7 @@ type (
PageMeta struct {
AllowPersonalLayouts bool `json:"allowPersonalLayouts"`
Notifications map[string]any `json:"notifications,omitempty"`
}
PageBlockStyle struct {