|
|
@@ -1359,9 +1359,9 @@
|
|
|
(not @*dragging?)))
|
|
|
|
|
|
(defn block-parents
|
|
|
- ([repo block-id format]
|
|
|
- (block-parents repo block-id format true))
|
|
|
- ([repo block-id format show-page?]
|
|
|
+ ([config repo block-id format]
|
|
|
+ (block-parents config repo block-id format true))
|
|
|
+ ([config repo block-id format show-page?]
|
|
|
(let [parents (db/get-block-parents repo block-id 3)
|
|
|
page (db/get-block-page repo block-id)
|
|
|
page-name (:page/name page)]
|
|
|
@@ -1379,12 +1379,10 @@
|
|
|
[:span.mx-2.opacity-50 "➤"])
|
|
|
|
|
|
(when (seq parents)
|
|
|
- (let [parents (for [{:block/keys [uuid content]} parents]
|
|
|
- (let [title (string/trim (text/remove-level-spaces content format))]
|
|
|
- (when (and (not (string/blank? title))
|
|
|
- (not= (string/lower-case page-name) (string/lower-case title)))
|
|
|
- [:a {:href (rfe/href :page {:name uuid})}
|
|
|
- title])))
|
|
|
+ (let [parents (doall
|
|
|
+ (for [{:block/keys [uuid title]} parents]
|
|
|
+ [:a {:href (rfe/href :page {:name uuid})}
|
|
|
+ (map-inline config title)]))
|
|
|
parents (remove nil? parents)]
|
|
|
(reset! parents-atom parents)
|
|
|
(when (seq parents)
|
|
|
@@ -1503,7 +1501,7 @@
|
|
|
(merge attrs))
|
|
|
|
|
|
(when (and ref? breadcrumb-show?)
|
|
|
- (when-let [comp (block-parents repo uuid format false)]
|
|
|
+ (when-let [comp (block-parents config repo uuid format false)]
|
|
|
[:div.my-2.opacity-50.ml-4 comp]))
|
|
|
|
|
|
(dnd-separator-wrapper block slide? (zero? idx))
|