mirror of
https://github.com/penpot/penpot.git
synced 2025-06-13 17:51:37 +02:00
♻️ Remove obsolete st/emitf macro
This commit is contained in:
parent
eb07350cac
commit
2be432e1d4
40 changed files with 211 additions and 230 deletions
|
@ -56,7 +56,7 @@
|
|||
(with-meta project {:on-success on-duplicate-success}))))
|
||||
|
||||
toggle-pin
|
||||
(st/emitf (dd/toggle-project-pin project))
|
||||
#(st/emit! (dd/toggle-project-pin project))
|
||||
|
||||
on-move-success
|
||||
(fn [team-id]
|
||||
|
@ -66,7 +66,7 @@
|
|||
(fn [team-id]
|
||||
(let [data {:id (:id project) :team-id team-id}
|
||||
mdata {:on-success #(on-move-success team-id)}]
|
||||
(st/emitf (dm/success (tr "dashboard.success-move-project"))
|
||||
#(st/emit! (dm/success (tr "dashboard.success-move-project"))
|
||||
(dd/move-project (with-meta data mdata)))))
|
||||
|
||||
delete-fn
|
||||
|
@ -76,7 +76,7 @@
|
|||
(dd/go-to-projects (:team-id project))))
|
||||
|
||||
on-delete
|
||||
(st/emitf
|
||||
#(st/emit!
|
||||
(modal/show
|
||||
{:type :confirm
|
||||
:title (tr "modals.delete-project-confirm.title")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue