mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 19:16:10 +02:00
✨ Complete backend behavior when duplicate and move
This commit is contained in:
parent
044f1f63c0
commit
6a345c4b8a
11 changed files with 269 additions and 299 deletions
|
@ -365,7 +365,7 @@
|
|||
new-name (str name " " (tr "dashboard.copy-suffix"))]
|
||||
|
||||
(->> (rp/mutation! :duplicate-project {:project-id id
|
||||
:new-name new-name})
|
||||
:name new-name})
|
||||
(rx/tap on-success)
|
||||
(rx/map #(partial duplicated %))
|
||||
(rx/catch on-error)))))))
|
||||
|
@ -533,7 +533,7 @@
|
|||
new-name (str name " " (tr "dashboard.copy-suffix"))]
|
||||
|
||||
(->> (rp/mutation! :duplicate-file {:file-id id
|
||||
:new-name new-name})
|
||||
:name new-name})
|
||||
(rx/tap on-success)
|
||||
(rx/map file-created)
|
||||
(rx/catch on-error))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue