Hide all messages on enter workspace

move the logic from component to event
This commit is contained in:
Andrey Antukh 2023-05-24 23:30:15 +02:00 committed by Alejandro Alonso
parent a6659601f4
commit da5209001b
2 changed files with 2 additions and 5 deletions

View file

@ -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)))

View file

@ -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