0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -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}))) :timeout timeout})))
(defn info-dialog (defn info-dialog
[content controls actions] ([content controls actions]
(show {:content content (info-dialog content controls actions nil))
:type :info ([content controls actions tag]
:controls controls (show {:content content
:actions actions})) :type :info
:controls controls
:actions actions
:tag tag})))

View file

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