|
@@ -125,7 +125,7 @@
|
|
|
(defn db-based-statuses
|
|
(defn db-based-statuses
|
|
|
[]
|
|
[]
|
|
|
(map (fn [id] (get-in (db/entity [:block/uuid id]) [:block/schema :value]))
|
|
(map (fn [id] (get-in (db/entity [:block/uuid id]) [:block/schema :value]))
|
|
|
- (pu/get-closed-property-values :logseq.property/status)))
|
|
|
|
|
|
|
+ (pu/get-closed-property-values :logseq.task/status)))
|
|
|
|
|
|
|
|
(defn db-based-embed-page
|
|
(defn db-based-embed-page
|
|
|
[]
|
|
[]
|
|
@@ -161,7 +161,7 @@
|
|
|
(defn db-based-priorities
|
|
(defn db-based-priorities
|
|
|
[]
|
|
[]
|
|
|
(map (fn [id] (get-in (db/entity [:block/uuid id]) [:block/schema :value]))
|
|
(map (fn [id] (get-in (db/entity [:block/uuid id]) [:block/schema :value]))
|
|
|
- (pu/get-closed-property-values :logseq.property/priority)))
|
|
|
|
|
|
|
+ (pu/get-closed-property-values :logseq.task/priority)))
|
|
|
|
|
|
|
|
(defn get-priorities
|
|
(defn get-priorities
|
|
|
[]
|
|
[]
|
|
@@ -659,7 +659,7 @@
|
|
|
(defn- db-based-set-status
|
|
(defn- db-based-set-status
|
|
|
[status]
|
|
[status]
|
|
|
(when-let [block (state/get-edit-block)]
|
|
(when-let [block (state/get-edit-block)]
|
|
|
- (db-property-handler/batch-set-property-closed-value! [(:block/uuid block)] :logseq.property/status status)))
|
|
|
|
|
|
|
+ (db-property-handler/batch-set-property-closed-value! [(:block/uuid block)] :logseq.task/status status)))
|
|
|
|
|
|
|
|
(defmethod handle-step :editor/set-status [[_ status] format]
|
|
(defmethod handle-step :editor/set-status [[_ status] format]
|
|
|
(if (config/db-based-graph? (state/get-current-repo))
|
|
(if (config/db-based-graph? (state/get-current-repo))
|
|
@@ -679,7 +679,7 @@
|
|
|
(defn- db-based-set-priority
|
|
(defn- db-based-set-priority
|
|
|
[priority]
|
|
[priority]
|
|
|
(when-let [block (state/get-edit-block)]
|
|
(when-let [block (state/get-edit-block)]
|
|
|
- (db-property-handler/batch-set-property-closed-value! [(:block/uuid block)] :logseq.property/priority priority)))
|
|
|
|
|
|
|
+ (db-property-handler/batch-set-property-closed-value! [(:block/uuid block)] :logseq.task/priority priority)))
|
|
|
|
|
|
|
|
(defmethod handle-step :editor/set-priority [[_ priority] _format]
|
|
(defmethod handle-step :editor/set-priority [[_ priority] _format]
|
|
|
(if (config/db-based-graph? (state/get-current-repo))
|
|
(if (config/db-based-graph? (state/get-current-repo))
|