mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 21:48:48 +08:00
chore(editor): remove page block feature flag (#10251)
This commit is contained in:
@@ -154,4 +154,17 @@ export class NoteBlockModel
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* We define a note block as a page block if it is the first visible note
|
||||
*/
|
||||
isPageBlock() {
|
||||
return (
|
||||
this.parent?.children.find(
|
||||
child =>
|
||||
child instanceof NoteBlockModel &&
|
||||
child.displayMode !== NoteDisplayMode.EdgelessOnly
|
||||
) === this
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user