Răsfoiți Sursa

fix: add context to delete property language

to remove any ambiguity. Fixes logseq/db-test#101
Gabriel Horner 1 an în urmă
părinte
comite
98a3082a09
1 a modificat fișierele cu 4 adăugiri și 2 ștergeri
  1. 4 2
      src/main/frontend/components/property/config.cljs

+ 4 - 2
src/main/frontend/components/property/config.cljs

@@ -453,7 +453,7 @@
                      (property-handler/remove-block-property! repo (:block/uuid block) (:db/ident property))))]
     (if (and class? class-schema?)
       (-> (shui/dialog-confirm!
-           [:p (str "Are you sure you want to delete this property?")]
+           [:p (str "Are you sure you want to delete the property from this tag?")]
            {:id :delete-property-from-class
             :data-reminder :ok})
           (p/then remove!))
@@ -584,7 +584,9 @@
                       (ldb/class? owner-block)
                       (contains? #{:logseq.property/parent} (:db/ident property)))))
        (dropdown-editor-menuitem
-        {:id :delete-property :icon :x :title "Delete property" :desc "" :disabled? false
+        {:id :delete-property :icon :x
+         :title (if class-schema? "Delete property from tag" "Delete from from node")
+         :desc "" :disabled? false
          :item-props {:class "opacity-60 focus:!text-red-rx-09 focus:opacity-100"
                       :on-select (fn [^js e]
                                    (util/stop e)