refactor(editor): remove readonly in awareness (#9597)

This commit is contained in:
Saul-Mirone
2025-01-09 05:15:35 +00:00
parent d21ef47ae8
commit 422bac6cbe
17 changed files with 71 additions and 179 deletions

View File

@@ -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);