diff --git a/packages/frontend/core/src/components/affine/page-properties/page-properties-manager.ts b/packages/frontend/core/src/components/affine/page-properties/page-properties-manager.ts index 8e7da1bc56..bf1d96befb 100644 --- a/packages/frontend/core/src/components/affine/page-properties/page-properties-manager.ts +++ b/packages/frontend/core/src/components/affine/page-properties/page-properties-manager.ts @@ -40,6 +40,11 @@ export const newPropertyTypes: PagePropertyType[] = [ // TODO(@Peng): add more ]; +export const readonlyPropertyTypes: PagePropertyType[] = [ + PagePropertyType.CreatedBy, + PagePropertyType.UpdatedBy, +]; + export class PagePropertiesMetaManager { constructor(private readonly adapter: WorkspacePropertiesAdapter) {} @@ -97,6 +102,7 @@ export class PagePropertiesMetaManager { type, order: newOrder, icon: icon ?? getDefaultIconName(type), + readonly: readonlyPropertyTypes.includes(type) || undefined, } as const; this.customPropertiesSchema[id] = property; return property;