mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 05:56:10 +02:00
✨ Minor improvements on section initialization.
This commit is contained in:
parent
daeaf14032
commit
8af46ac7fc
11 changed files with 96 additions and 82 deletions
|
@ -101,12 +101,17 @@
|
|||
(reverse))]
|
||||
|
||||
(mf/use-effect
|
||||
(mf/deps (:id project))
|
||||
(mf/deps project)
|
||||
(fn []
|
||||
(when project
|
||||
(let [pname (if (:is-default project)
|
||||
(tr "labels.drafts")
|
||||
(:name project))]
|
||||
(dom/set-html-title (tr "title.dashboard.files" pname))))))
|
||||
|
||||
(mf/use-effect
|
||||
(mf/deps project)
|
||||
(fn []
|
||||
(dom/set-html-title (tr "title.dashboard.files"
|
||||
(if (:is-default project)
|
||||
(tr "labels.drafts")
|
||||
(:name project))))
|
||||
(st/emit! (dd/fetch-files {:project-id (:id project)})
|
||||
(dd/clear-selected-files))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue