mirror of
https://github.com/penpot/penpot.git
synced 2025-07-17 22:07:13 +02:00
🐛 Update module disappears without applying the changes
This commit is contained in:
parent
15deeacb5e
commit
da5847cc4d
3 changed files with 9 additions and 5 deletions
|
@ -1054,8 +1054,7 @@
|
||||||
ignore-until (dm/get-in state [:workspace-file :ignore-sync-until])
|
ignore-until (dm/get-in state [:workspace-file :ignore-sync-until])
|
||||||
libraries-need-sync (filter #(seq (assets-need-sync % file-data ignore-until))
|
libraries-need-sync (filter #(seq (assets-need-sync % file-data ignore-until))
|
||||||
(vals (get state :workspace-libraries)))
|
(vals (get state :workspace-libraries)))
|
||||||
do-more-info #(do (modal/show! :libraries-dialog {:starting-tab :updates})
|
do-more-info #(modal/show! :libraries-dialog {:starting-tab :updates})
|
||||||
(st/emit! msg/hide))
|
|
||||||
do-update #(do (apply st/emit! (map (fn [library]
|
do-update #(do (apply st/emit! (map (fn [library]
|
||||||
(sync-file (:current-file-id state)
|
(sync-file (:current-file-id state)
|
||||||
(:id library)))
|
(:id library)))
|
||||||
|
|
|
@ -481,6 +481,11 @@
|
||||||
on-tab-change
|
on-tab-change
|
||||||
(mf/use-fn #(reset! selected-tab* %))
|
(mf/use-fn #(reset! selected-tab* %))
|
||||||
|
|
||||||
|
close-dialog-outside
|
||||||
|
(mf/use-fn (fn [event]
|
||||||
|
(when (= (dom/get-target event) (dom/get-current-target event))
|
||||||
|
(modal/hide!))))
|
||||||
|
|
||||||
close-dialog
|
close-dialog
|
||||||
(mf/use-fn (fn [_]
|
(mf/use-fn (fn [_]
|
||||||
(modal/hide!)
|
(modal/hide!)
|
||||||
|
@ -490,7 +495,7 @@
|
||||||
(when team-id
|
(when team-id
|
||||||
(st/emit! (dwl/fetch-shared-files {:team-id team-id}))))
|
(st/emit! (dwl/fetch-shared-files {:team-id team-id}))))
|
||||||
|
|
||||||
[:div {:class (stl/css :modal-overlay)}
|
[:div {:class (stl/css :modal-overlay) :on-click close-dialog-outside}
|
||||||
[:div {:class (stl/css :modal-dialog)}
|
[:div {:class (stl/css :modal-dialog)}
|
||||||
[:button {:class (stl/css :close)
|
[:button {:class (stl/css :close)
|
||||||
:on-click close-dialog}
|
:on-click close-dialog}
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: $z-index-modal;
|
z-index: $z-index-modal;
|
||||||
background-color: var(--overlay-color);
|
background-color: var(--overlay-color);
|
||||||
pointer-events: none; // This is to allow outside click that closes modal.
|
|
||||||
|
|
||||||
.modal-dialog {
|
.modal-dialog {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -25,7 +24,6 @@
|
||||||
padding: $s-32;
|
padding: $s-32;
|
||||||
border-radius: $br-10;
|
border-radius: $br-10;
|
||||||
background-color: var(--modal-background-color);
|
background-color: var(--modal-background-color);
|
||||||
pointer-events: all;
|
|
||||||
.close {
|
.close {
|
||||||
@extend .button-tertiary;
|
@extend .button-tertiary;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -146,8 +144,10 @@
|
||||||
|
|
||||||
.section-title {
|
.section-title {
|
||||||
@include titleTipography;
|
@include titleTipography;
|
||||||
|
color: var(--modal-title-foreground-color);
|
||||||
margin-bottom: $s-12;
|
margin-bottom: $s-12;
|
||||||
}
|
}
|
||||||
|
|
||||||
.libraries-search {
|
.libraries-search {
|
||||||
margin: $s-12 0;
|
margin: $s-12 0;
|
||||||
.search-icon {
|
.search-icon {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue