0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 08:20:45 -05:00

🐛 Hide notification message when syncing a library

This commit is contained in:
Andrés Moya 2020-09-30 11:39:39 +02:00 committed by Alonso Torres
parent 2cf15677cc
commit e26ba1fabd
2 changed files with 11 additions and 6 deletions

View file

@ -104,9 +104,12 @@
:timeout timeout})))
(defn info-dialog
[content controls actions]
(show {:content content
:type :info
:controls controls
:actions actions}))
([content controls actions]
(info-dialog content controls actions nil))
([content controls actions tag]
(show {:content content
:type :info
:controls controls
:actions actions
:tag tag})))

View file

@ -461,6 +461,7 @@
rchanges (d/concat rchanges1 rchanges2 rchanges3)
uchanges (d/concat uchanges1 uchanges2 uchanges3)]
(rx/concat
(rx/of (dm/hide-tag :sync-dialog))
(when rchanges
(rx/of (dwc/commit-changes rchanges uchanges {:commit-local? true})))
(when file-id
@ -520,5 +521,6 @@
[{:label (tr "workspace.updates.update")
:callback do-update}
{:label (tr "workspace.updates.dismiss")
:callback do-dismiss}]))))))
:callback do-dismiss}]
:sync-dialog))))))