pub fn load_notebook(&mut self, backend: &BackendHandle) -> UiDoc<Notebook> {
// Create Notebook UI model
- let notebook = Notebook::new(self.data.collection_id, backend);
+ let mut notebook = Notebook::new(self.data.collection_id, backend);
+ notebook.read_only = self.data.read_only;
let doc = notebook.into_doc();
self.model = Some(doc.clone());
pub parent: String,
pub icon: Option<String>,
pub kind: CollectionType,
- pub storage: LocalStorageSetting
+ pub storage: LocalStorageSetting,
+ pub read_only: bool,
}
impl Model {