feat(views/geomap): allow disabling editing

This commit is contained in:
Elian Doran
2025-07-07 19:04:47 +03:00
parent 5c6bb99d78
commit c1a5808f37
6 changed files with 70 additions and 31 deletions

View File

@@ -44,6 +44,10 @@ export default abstract class ViewMode<T extends object> extends Component {
return false;
}
get isReadOnly() {
return this.parentNote.hasLabel("readOnly");
}
get viewStorage() {
if (this._viewStorage) {
return this._viewStorage;