feat(client): handle read-only database

This commit is contained in:
FliegendeWurst
2025-05-21 17:24:00 +02:00
parent 2427addf65
commit 923316e14e
2 changed files with 9 additions and 0 deletions

View File

@@ -254,6 +254,10 @@ class NoteContext extends Component implements EventListener<"entitiesReloaded">
return false;
}
if (options.is("databaseReadonly")) {
return true;
}
if (this.note.isLabelTruthy("readOnly")) {
return true;
}