Add option to disable on record save notifications per record page
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -77,6 +77,7 @@ type (
|
||||
|
||||
PageMeta struct {
|
||||
AllowPersonalLayouts bool `json:"allowPersonalLayouts"`
|
||||
Notifications map[string]any `json:"notifications,omitempty"`
|
||||
}
|
||||
|
||||
PageBlockStyle struct {
|
||||
|
||||
Reference in New Issue
Block a user