mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 04:06:13 +02:00
✨ Hide all messages on enter workspace
move the logic from component to event
This commit is contained in:
parent
a6659601f4
commit
da5209001b
2 changed files with 2 additions and 5 deletions
|
@ -305,7 +305,8 @@
|
||||||
|
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ _ _]
|
(watch [_ _ _]
|
||||||
(rx/of (dcm/retrieve-comment-threads file-id)
|
(rx/of msg/hide
|
||||||
|
(dcm/retrieve-comment-threads file-id)
|
||||||
(dwp/initialize-file-persistence file-id)
|
(dwp/initialize-file-persistence file-id)
|
||||||
(fetch-bundle project-id file-id)))
|
(fetch-bundle project-id file-id)))
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
(ns app.main.ui.workspace
|
(ns app.main.ui.workspace
|
||||||
(:require
|
(:require
|
||||||
[app.common.data.macros :as dm]
|
[app.common.data.macros :as dm]
|
||||||
[app.main.data.messages :as msg]
|
|
||||||
[app.main.data.modal :as modal]
|
[app.main.data.modal :as modal]
|
||||||
[app.main.data.workspace :as dw]
|
[app.main.data.workspace :as dw]
|
||||||
[app.main.data.workspace.persistence :as dwp]
|
[app.main.data.workspace.persistence :as dwp]
|
||||||
|
@ -166,9 +165,6 @@
|
||||||
(st/emit! ::dwp/force-persist
|
(st/emit! ::dwp/force-persist
|
||||||
(dw/finalize-file project-id file-id))))
|
(dw/finalize-file project-id file-id))))
|
||||||
|
|
||||||
(mf/with-effect []
|
|
||||||
(st/emit! msg/hide))
|
|
||||||
|
|
||||||
;; Set properly the page title
|
;; Set properly the page title
|
||||||
(mf/with-effect [file-name]
|
(mf/with-effect [file-name]
|
||||||
(when file-name
|
(when file-name
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue