Merge pull request #2600 from penpot/palba-workspace-read-only

🎉 Add workspace read-only setting
This commit is contained in:
Andrey Antukh 2022-11-29 17:45:37 +01:00 committed by GitHub
commit 12cc5c6c97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 567 additions and 460 deletions

View file

@ -322,3 +322,8 @@
objects (get-in @st/state [:workspace-data :pages-index page-id :objects])]
(.log js/console (modif->js (:workspace-modifiers @st/state) objects)))
nil)
(defn ^:export set-workspace-read-only
[read-only?]
(st/emit! (dw/set-workspace-read-only read-only?)))