|
@@ -24,7 +24,6 @@
|
|
|
[frontend.handler.notification :as notification]
|
|
|
[frontend.handler.plugin :as plugin-handler]
|
|
|
[frontend.handler.property :as property-handler]
|
|
|
- [frontend.handler.property.util :as pu]
|
|
|
[frontend.handler.ui :as ui-handler]
|
|
|
[frontend.mobile.util :as mobile-util]
|
|
|
[frontend.modules.outliner.op :as outliner-op]
|
|
@@ -45,7 +44,8 @@
|
|
|
[logseq.db :as ldb]
|
|
|
[logseq.graph-parser.db :as gp-db]
|
|
|
[logseq.graph-parser.text :as text]
|
|
|
- [promesa.core :as p]))
|
|
|
+ [promesa.core :as p]
|
|
|
+ [frontend.handler.file-based.page-property :as file-page-property]))
|
|
|
|
|
|
(def <create! page-common-handler/<create!)
|
|
|
(def <delete! page-common-handler/<delete!)
|
|
@@ -169,8 +169,10 @@
|
|
|
(state/set-journals-length! (+ (:journals-length @state/state) 7))))
|
|
|
|
|
|
(defn update-public-attribute!
|
|
|
- [page value]
|
|
|
- (property-handler/add-page-property! page (pu/get-pid :logseq.property/public) value))
|
|
|
+ [repo page value]
|
|
|
+ (if (config/db-based-graph? repo)
|
|
|
+ (db-property-handler/set-block-property! [:block/uuid (:block/uuid page)] :logseq.property/publishing-public? value)
|
|
|
+ (file-page-property/add-property! page :public value)))
|
|
|
|
|
|
(defn get-page-ref-text
|
|
|
[page]
|