0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

Add some user feedback while exporting artboards

This commit is contained in:
Andrés Moya 2021-09-03 14:56:34 +02:00 committed by Alonso Torres
parent f6e18de6af
commit ba0f7416bb

View file

@ -170,6 +170,7 @@
(fn [_]
(let [filename (str (:name file) ".pdf")
frame-ids (mapv :id frames)]
(st/emit! (dm/info (tr "workspace.options.exporting-object")))
(->> (rp/query! :export-frames
{:name (:name file)
:file-id (:id file)
@ -179,7 +180,8 @@
(fn [body]
(dom/trigger-download filename body))
(fn [_error]
(st/emit! (dm/error (tr "errors.unexpected-error")))))))))]
(st/emit! (dm/error (tr "errors.unexpected-error"))))
(st/emitf dm/hide))))))]
(mf/use-effect
(mf/deps @editing?)