Browse Source

fix: add context to delete property language

to remove any ambiguity. Fixes logseq/db-test#101
Gabriel Horner 1 năm trước cách đây
mục cha
commit
98a3082a09

+ 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))))]
                      (property-handler/remove-block-property! repo (:block/uuid block) (:db/ident property))))]
     (if (and class? class-schema?)
     (if (and class? class-schema?)
       (-> (shui/dialog-confirm!
       (-> (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
            {:id :delete-property-from-class
             :data-reminder :ok})
             :data-reminder :ok})
           (p/then remove!))
           (p/then remove!))
@@ -584,7 +584,9 @@
                       (ldb/class? owner-block)
                       (ldb/class? owner-block)
                       (contains? #{:logseq.property/parent} (:db/ident property)))))
                       (contains? #{:logseq.property/parent} (:db/ident property)))))
        (dropdown-editor-menuitem
        (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"
          :item-props {:class "opacity-60 focus:!text-red-rx-09 focus:opacity-100"
                       :on-select (fn [^js e]
                       :on-select (fn [^js e]
                                    (util/stop e)
                                    (util/stop e)