|
|
@@ -4,17 +4,18 @@
|
|
|
[frontend.components.block :as block]
|
|
|
[frontend.components.onboarding :as onboarding]
|
|
|
[frontend.components.page :as page]
|
|
|
- [frontend.components.svg :as svg]
|
|
|
[frontend.components.shortcut :as shortcut]
|
|
|
+ [frontend.components.svg :as svg]
|
|
|
[frontend.context.i18n :refer [t]]
|
|
|
[frontend.date :as date]
|
|
|
[frontend.db :as db]
|
|
|
[frontend.db-mixins :as db-mixins]
|
|
|
[frontend.db.model :as db-model]
|
|
|
[frontend.extensions.slide :as slide]
|
|
|
+ [frontend.handler.editor :as editor-handler]
|
|
|
+ [frontend.handler.ui :as ui-handler]
|
|
|
[frontend.state :as state]
|
|
|
[frontend.ui :as ui]
|
|
|
- [frontend.handler.ui :as ui-handler]
|
|
|
[frontend.util :as util]
|
|
|
[goog.object :as gobj]
|
|
|
[medley.core :as medley]
|
|
|
@@ -57,7 +58,7 @@
|
|
|
|
|
|
(defn- block-with-breadcrumb
|
|
|
[repo block idx sidebar-key ref?]
|
|
|
- (let [block-id (:block/uuid block)]
|
|
|
+ (when-let [block-id (:block/uuid block)]
|
|
|
[[:div.mt-1 {:class (if ref? "ml-8" "ml-1")}
|
|
|
(block/breadcrumb {:id "block-parent"
|
|
|
:block? true
|
|
|
@@ -99,6 +100,8 @@
|
|
|
[[:a.page-title {:href (if (db-model/whiteboard-page? page-name)
|
|
|
(rfe/href :whiteboard {:name page-name})
|
|
|
(rfe/href :page {:name page-name}))
|
|
|
+ :draggable true
|
|
|
+ :on-drag-start (fn [event] (editor-handler/block->data-transfer! page-name event))
|
|
|
:on-click (fn [e]
|
|
|
(when (gobj/get e "shiftKey")
|
|
|
(.preventDefault e)))}
|