ux: click block references number to toggle references below the number

Shift+Click to open the references in the right sidebar
This commit is contained in:
Tienson Qin
2022-05-06 12:56:47 +08:00
parent e46452f6de
commit f89bcd0b77
6 changed files with 69 additions and 31 deletions

View File

@@ -1490,6 +1490,15 @@
[]
(get-in @state [:view/components :page-blocks]))
;; To avoid circular dependencies
(defn set-component!
[k value]
(set-state! [:view/components k] value))
(defn get-component
[k]
(get-in @state [:view/components k]))
(defn exit-editing-and-set-selected-blocks!
([blocks]
(exit-editing-and-set-selected-blocks! blocks :down))