Skip to content

Commit df936ab

Browse files
authored
Merge pull request #369 from AppFlowy-IO/support-view-lock
feat: support view lock
2 parents 8358ddb + 68fd318 commit df936ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

collab-folder/src/view.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,11 @@ impl<'a, 'b, 'c> ViewUpdate<'a, 'b, 'c> {
666666
self
667667
}
668668

669+
pub fn set_page_lock_status(self, is_locked: bool) -> Self {
670+
self.map_ref.insert(self.txn, VIEW_IS_LOCKED, is_locked);
671+
self
672+
}
673+
669674
pub fn done(self) -> Option<View> {
670675
view_from_map_ref(self.map_ref, self.txn, &self.children_map, self.section_map)
671676
}

0 commit comments

Comments
 (0)