Refactor tool management as generic flags on workspace.

This commit is contained in:
Andrey Antukh 2016-01-11 22:30:26 +02:00
parent 2a580ccf8b
commit 0abc29451a
6 changed files with 18 additions and 12 deletions

View file

@ -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)