0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-27 00:49:28 -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 [_] (fn [_]
(let [filename (str (:name file) ".pdf") (let [filename (str (:name file) ".pdf")
frame-ids (mapv :id frames)] frame-ids (mapv :id frames)]
(st/emit! (dm/info (tr "workspace.options.exporting-object")))
(->> (rp/query! :export-frames (->> (rp/query! :export-frames
{:name (:name file) {:name (:name file)
:file-id (:id file) :file-id (:id file)
@ -179,7 +180,8 @@
(fn [body] (fn [body]
(dom/trigger-download filename body)) (dom/trigger-download filename body))
(fn [_error] (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/use-effect
(mf/deps @editing?) (mf/deps @editing?)