0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-22 14:39:45 -05:00

Type of confirmation message when editing user settings

This commit is contained in:
Andrés Moya 2020-07-20 12:53:52 +02:00
parent 21b074c547
commit bd34fc40b4
3 changed files with 3 additions and 3 deletions

View file

@ -34,7 +34,7 @@
[form event]
(dom/prevent-default event)
(let [data (:clean-data form)
on-success #(st/emit! (dm/info (tr "settings.notifications.profile-saved")))
on-success #(st/emit! (dm/success (tr "settings.notifications.profile-saved")))
on-error #(on-error % form)]
(st/emit! (udu/update-profile (with-meta data
{:on-success on-success

View file

@ -34,7 +34,7 @@
(defn- on-success
[form]
(let [msg (tr "settings.notifications.password-saved")]
(st/emit! (dm/info msg))))
(st/emit! (dm/success msg))))
(defn- on-submit
[form event]

View file

@ -40,7 +40,7 @@
(defn- on-submit
[form event]
(let [data (:clean-data form)
on-success #(st/emit! (dm/info (tr "settings.notifications.profile-saved")))
on-success #(st/emit! (dm/success (tr "settings.notifications.profile-saved")))
on-error #(on-error % form)]
(st/emit! (udu/update-profile (with-meta data
{:on-success on-success