Complete backend behavior when duplicate and move

This commit is contained in:
Andrey Antukh 2021-03-02 21:13:19 +01:00 committed by Andrés Moya
parent 044f1f63c0
commit 6a345c4b8a
11 changed files with 269 additions and 299 deletions

View file

@ -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))))))