Jelajahi Sumber

enhance(ux): notify property updated for selected blocks

Tienson Qin 11 bulan lalu
induk
melakukan
9c219c6791
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      src/main/frontend/components/property/value.cljs

+ 3 - 0
src/main/frontend/components/property/value.cljs

@@ -18,6 +18,7 @@
             [frontend.handler.db-based.page :as db-page-handler]
             [frontend.handler.db-based.property :as db-property-handler]
             [frontend.handler.editor :as editor-handler]
+            [frontend.handler.notification :as notification]
             [frontend.handler.page :as page-handler]
             [frontend.handler.property :as property-handler]
             [frontend.handler.property.util :as pu]
@@ -219,6 +220,8 @@
               (property-handler/batch-set-block-property! repo block-ids property-id (:db/id new-block))
               new-block)
             (property-handler/batch-set-block-property! repo block-ids property-id property-value))))
+      (when (seq (:view/selected-blocks @state/state))
+        (notification/show! "Property updated!" :success))
       (cond
         exit-edit?
         (do