mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 06:01:40 +02:00
🐛 Fix bugs on audit log module.
This commit is contained in:
parent
1d3c8e867e
commit
6e327b69f5
2 changed files with 54 additions and 62 deletions
|
@ -25,9 +25,7 @@
|
|||
(mf/use-effect
|
||||
(mf/deps team)
|
||||
(fn []
|
||||
(st/emit! (dcm/retrieve-unread-comment-threads (:id team))
|
||||
(ptk/event ::ev/event {::ev/name "open-comment-notifications"
|
||||
::ev/origin "dashboard"}))))
|
||||
(st/emit! (dcm/retrieve-unread-comment-threads (:id team)))))
|
||||
|
||||
(let [show-dropdown? (mf/use-state false)
|
||||
show-dropdown (mf/use-fn #(reset! show-dropdown? true))
|
||||
|
@ -47,6 +45,13 @@
|
|||
(st/emit! (-> (dwcm/navigate thread)
|
||||
(with-meta {::ev/origin "dashboard"})))))]
|
||||
|
||||
(mf/use-effect
|
||||
(mf/deps @show-dropdown?)
|
||||
(fn []
|
||||
(when @show-dropdown?
|
||||
(st/emit! (ptk/event ::ev/event {::ev/name "open-comment-notifications"
|
||||
::ev/origin "dashboard"})))))
|
||||
|
||||
[:div.dashboard-comments-section
|
||||
[:div.button
|
||||
{:on-click show-dropdown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue