mirror of
https://github.com/penpot/penpot.git
synced 2025-06-14 09:41:38 +02:00
✨ Move share link mutations to commands
This commit is contained in:
parent
4258a840ac
commit
1e1f551383
7 changed files with 88 additions and 36 deletions
|
@ -27,7 +27,7 @@
|
|||
(ptk/reify ::create-share-link
|
||||
ptk/WatchEvent
|
||||
(watch [_ _ _]
|
||||
(->> (rp/mutation! :create-share-link params)
|
||||
(->> (rp/cmd! :create-share-link params)
|
||||
(rx/map share-link-created)))))
|
||||
|
||||
(defn delete-share-link
|
||||
|
@ -41,6 +41,6 @@
|
|||
|
||||
ptk/WatchEvent
|
||||
(watch [_ _ _]
|
||||
(->> (rp/mutation! :delete-share-link {:id id})
|
||||
(->> (rp/cmd! :delete-share-link {:id id})
|
||||
(rx/ignore)))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue