enhance: hide logbook drawer when editing

This commit is contained in:
Tienson Qin
2021-08-31 00:38:51 +08:00
parent 422c2de99d
commit 3a98f92dff
11 changed files with 230 additions and 150 deletions

View File

@@ -2,6 +2,7 @@
(:refer-clojure :exclude [empty?])
(:require [frontend.text :as text]
[frontend.util.property :as property]
[frontend.util.drawer :as drawer]
[frontend.db :as db]
[frontend.state :as state]
[cljs-bean.core :as bean]
@@ -17,7 +18,7 @@
(defn block->index
[{:block/keys [uuid content format page] :as block}]
(when-let [result (->> (text/remove-level-spaces content format)
(property/remove-built-in-properties format))]
(drawer/remove-logbook))]
{:id (:db/id block)
:uuid (str uuid)
:page page