Add missing page button config for create/update svc
This commit is contained in:
@@ -320,6 +320,8 @@ func (svc page) Create(ctx context.Context, new *types.Page) (*types.Page, error
|
||||
return
|
||||
}
|
||||
|
||||
preparePageConfig(svc.pageSettings, new)
|
||||
|
||||
if err = label.Create(ctx, s, new); err != nil {
|
||||
return
|
||||
}
|
||||
@@ -488,6 +490,8 @@ func (svc page) updater(ctx context.Context, s store.Storer, ns *types.Namespace
|
||||
return
|
||||
}
|
||||
|
||||
preparePageConfig(svc.pageSettings, res)
|
||||
|
||||
if changes&pageLabelsChanged > 0 {
|
||||
if err = label.Update(ctx, s, res); err != nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user