mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
refactor(editor): set readonly (#9475)
This commit is contained in:
@@ -343,9 +343,7 @@ export class AffineFormatBarWidget extends WidgetComponent {
|
||||
}
|
||||
|
||||
private _shouldDisplay() {
|
||||
const readonly = this.doc.awarenessStore.isReadonly(
|
||||
this.doc.blockCollection
|
||||
);
|
||||
const readonly = this.doc.readonly;
|
||||
const active = this.host.event.active;
|
||||
if (readonly || !active) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user