mirror of
https://github.com/penpot/penpot.git
synced 2025-05-23 08:36:11 +02:00
✨ Change to penpot file format and fixes
This commit is contained in:
parent
84a7ab8568
commit
7b4603e33e
7 changed files with 77 additions and 51 deletions
|
@ -161,15 +161,15 @@
|
|||
(->> (uw/ask-many!
|
||||
{:cmd :export-file
|
||||
:team-id current-team-id
|
||||
:files files})
|
||||
:files (->> files (mapv :id))})
|
||||
(rx/subs
|
||||
(fn [{:keys [type data] :as msg}]
|
||||
(case type
|
||||
(fn [msg]
|
||||
(case (:type msg)
|
||||
:progress
|
||||
(prn "[Progress]" data)
|
||||
(prn "[Progress]" (:data msg))
|
||||
|
||||
:finish
|
||||
(dom/save-as data "export" "application/zip" "Export package (*.zip)"))))))]
|
||||
(dom/trigger-download-uri (:filename msg) (:mtype msg) (:uri msg)))))))]
|
||||
|
||||
(mf/use-effect
|
||||
(fn []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue