Show current page in browser title

This commit is contained in:
Andrés Moya 2021-03-22 13:41:12 +01:00 committed by Andrey Antukh
parent 0008a2aa48
commit 6383dc0952
16 changed files with 202 additions and 15 deletions

View file

@ -164,6 +164,10 @@
(mf/use-effect
(mf/deps team)
(fn []
(dom/set-html-title (tr "title.dashboard.projects"
(if (:is-default team)
(tr "dashboard.your-penpot")
(:name team))))
(st/emit! (dd/fetch-recent-files {:team-id (:id team)})
(dd/clear-selected-files))))