mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
refactor(editor): remove readonly in awareness (#9597)
This commit is contained in:
@@ -154,7 +154,7 @@ export class EdgelessRootService extends RootService implements SurfaceContext {
|
||||
|
||||
let readonly = doc.readonly;
|
||||
this.disposables.add(
|
||||
doc.awarenessStore.slots.update.on(() => {
|
||||
effect(() => {
|
||||
if (readonly !== doc.readonly) {
|
||||
readonly = doc.readonly;
|
||||
slots.readonlyUpdated.emit(readonly);
|
||||
|
||||
Reference in New Issue
Block a user