mirror of
https://github.com/penpot/penpot.git
synced 2025-03-11 07:11:32 -05:00
🐛 Fix problem when export not getting new change
This commit is contained in:
parent
334d1fd9b3
commit
b0d723282b
4 changed files with 14 additions and 0 deletions
|
@ -111,6 +111,7 @@
|
|||
|
||||
shadow-width
|
||||
(->> (:shadow shape)
|
||||
(remove :hidden)
|
||||
(map #(case (:style % :drop-shadow)
|
||||
:drop-shadow (+ (mth/abs (:offset-x %)) (* (:spread %) 2) (* (:blur %) 2) 10)
|
||||
0))
|
||||
|
@ -118,6 +119,7 @@
|
|||
|
||||
shadow-height
|
||||
(->> (:shadow shape)
|
||||
(remove :hidden)
|
||||
(map #(case (:style % :drop-shadow)
|
||||
:drop-shadow (+ (mth/abs (:offset-y %)) (* (:spread %) 2) (* (:blur %) 2) 10)
|
||||
0))
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
[app.main.data.modal :as modal]
|
||||
[app.main.data.workspace.persistence :as dwp]
|
||||
[app.main.data.workspace.state-helpers :as wsh]
|
||||
[app.main.refs :as refs]
|
||||
[app.main.repo :as rp]
|
||||
[app.main.store :as st]
|
||||
[app.util.dom :as dom]
|
||||
|
@ -166,6 +167,13 @@
|
|||
:wait true}]
|
||||
(rx/concat
|
||||
(rx/of ::dwp/force-persist)
|
||||
|
||||
;; Wait the persist to be succesfull
|
||||
(->> (rx/from-atom refs/persistence-state {:emit-current-value? true})
|
||||
(rx/filter #(or (nil? %) (= :saved %)))
|
||||
(rx/first)
|
||||
(rx/timeout 400 (rx/empty)))
|
||||
|
||||
(->> (rp/cmd! :export params)
|
||||
(rx/mapcat (fn [{:keys [id filename]}]
|
||||
(->> (rp/cmd! :export {:cmd :get-resource :blob? true :id id})
|
||||
|
|
|
@ -591,3 +591,6 @@
|
|||
|
||||
(def updating-library
|
||||
(l/derived :updating-library st/state))
|
||||
|
||||
(def persistence-state
|
||||
(l/derived (comp :status :workspace-persistence) st/state))
|
||||
|
|
|
@ -57,6 +57,7 @@
|
|||
width: 100%;
|
||||
height: fit-content;
|
||||
text-align: left;
|
||||
border: 1px solid transparent;
|
||||
.icon-btn {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
|
|
Loading…
Add table
Reference in a new issue