mirror of
https://github.com/penpot/penpot.git
synced 2025-06-28 06:26:59 +02:00
Refactor tool management as generic flags on workspace.
This commit is contained in:
parent
2a580ccf8b
commit
0abc29451a
6 changed files with 18 additions and 12 deletions
|
@ -116,11 +116,11 @@
|
|||
(defn pagesmngr-render
|
||||
[own]
|
||||
(let [local (:rum/local own)
|
||||
workspace (rum/react wb/workspace-state)
|
||||
flags (rum/react wb/flags-state)
|
||||
project (rum/react wb/project-state)]
|
||||
(html
|
||||
[:div#project-bar.project-bar
|
||||
(when-not (:pagesbar-enabled workspace false)
|
||||
(when-not (contains? flags :workspace/pagesmngr)
|
||||
{:class "toggle"})
|
||||
(if (:edit @local)
|
||||
(page-form local)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue