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:
parent
21b074c547
commit
bd34fc40b4
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue