mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
enhance: able to edit property value of :string type
able to set plural form for tags
This commit is contained in:
8
deps/db/src/logseq/db.cljs
vendored
8
deps/db/src/logseq/db.cljs
vendored
@@ -745,7 +745,13 @@
|
||||
{})
|
||||
(map (fn [[class-id entities]]
|
||||
(let [class (d/entity db class-id)
|
||||
title (pluralize-class-title (:block/title class))]
|
||||
custom-title (when-let [custom (:logseq.property.class/title-plural class)]
|
||||
(if (string? custom)
|
||||
custom
|
||||
(db-property/property-value-content custom)))
|
||||
title (if (string/blank? custom-title)
|
||||
(pluralize-class-title (:block/title class))
|
||||
custom-title)]
|
||||
{:title title
|
||||
:class (-> (into {} class)
|
||||
(assoc :db/id (:db/id class)))
|
||||
|
||||
4
deps/db/src/logseq/db/frontend/property.cljs
vendored
4
deps/db/src/logseq/db/frontend/property.cljs
vendored
@@ -182,6 +182,10 @@
|
||||
:cardinality :many
|
||||
:public? true
|
||||
:view-context :never}}
|
||||
:logseq.property.class/title-plural {:title "Plural title"
|
||||
:schema {:type :string
|
||||
:public? true
|
||||
:view-context :class}}
|
||||
:logseq.property/hide-empty-value {:title "Hide empty value"
|
||||
:schema {:type :checkbox
|
||||
:public? true
|
||||
|
||||
2
deps/db/src/logseq/db/frontend/schema.cljs
vendored
2
deps/db/src/logseq/db/frontend/schema.cljs
vendored
@@ -37,7 +37,7 @@
|
||||
(map (juxt :major :minor)
|
||||
[(parse-schema-version x) (parse-schema-version y)])))
|
||||
|
||||
(def version (parse-schema-version "65.19"))
|
||||
(def version (parse-schema-version "65.20"))
|
||||
|
||||
(defn major-version
|
||||
"Return a number.
|
||||
|
||||
@@ -584,7 +584,6 @@
|
||||
(= existing-value v'))]
|
||||
(throw-error-if-self-value block v' ref?)
|
||||
|
||||
(prn :debug :value-matches? value-matches?)
|
||||
(when-not value-matches?
|
||||
(raw-set-block-property! conn block property v'))))))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user