mirror of
https://github.com/penpot/penpot.git
synced 2025-03-18 10:41:29 -05: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
|
||||
(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)
|
||||
(fetch-bundle project-id file-id)))
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
(ns app.main.ui.workspace
|
||||
(:require
|
||||
[app.common.data.macros :as dm]
|
||||
[app.main.data.messages :as msg]
|
||||
[app.main.data.modal :as modal]
|
||||
[app.main.data.workspace :as dw]
|
||||
[app.main.data.workspace.persistence :as dwp]
|
||||
|
@ -166,9 +165,6 @@
|
|||
(st/emit! ::dwp/force-persist
|
||||
(dw/finalize-file project-id file-id))))
|
||||
|
||||
(mf/with-effect []
|
||||
(st/emit! msg/hide))
|
||||
|
||||
;; Set properly the page title
|
||||
(mf/with-effect [file-name]
|
||||
(when file-name
|
||||
|
|
Loading…
Add table
Reference in a new issue