mirror of
https://github.com/penpot/penpot.git
synced 2025-02-15 11:38:24 -05:00
✨ Translate name of default projects
This commit is contained in:
parent
161b8cdabb
commit
ee6717ef69
1 changed files with 10 additions and 3 deletions
|
@ -39,6 +39,11 @@
|
||||||
current-projects (remove #(= (:id %) (:project-id file))
|
current-projects (remove #(= (:id %) (:project-id file))
|
||||||
(:projects current-team))
|
(:projects current-team))
|
||||||
|
|
||||||
|
project-name (fn [project]
|
||||||
|
(if (:is-default project)
|
||||||
|
(tr "labels.drafts")
|
||||||
|
(:name project)))
|
||||||
|
|
||||||
on-new-tab
|
on-new-tab
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(mf/deps file)
|
(mf/deps file)
|
||||||
|
@ -159,14 +164,16 @@
|
||||||
(when (or (seq current-projects) (seq other-teams))
|
(when (or (seq current-projects) (seq other-teams))
|
||||||
[(tr "dashboard.move-to") nil
|
[(tr "dashboard.move-to") nil
|
||||||
(conj (vec (for [project current-projects]
|
(conj (vec (for [project current-projects]
|
||||||
[(:name project) (on-move (:id current-team)
|
[(project-name project)
|
||||||
|
(on-move (:id current-team)
|
||||||
(:id project))]))
|
(:id project))]))
|
||||||
(when (seq other-teams)
|
(when (seq other-teams)
|
||||||
[(tr "dashboard.move-to-other-team") nil
|
[(tr "dashboard.move-to-other-team") nil
|
||||||
(for [team other-teams]
|
(for [team other-teams]
|
||||||
[(:name team) nil
|
[(:name team) nil
|
||||||
(for [sub-project (:projects team)]
|
(for [sub-project (:projects team)]
|
||||||
[(:name sub-project) (on-move (:id team)
|
[(project-name sub-project)
|
||||||
|
(on-move (:id team)
|
||||||
(:id sub-project))])])]))])
|
(:id sub-project))])])]))])
|
||||||
(if (:is-shared file)
|
(if (:is-shared file)
|
||||||
[(tr "dashboard.remove-shared") on-del-shared]
|
[(tr "dashboard.remove-shared") on-del-shared]
|
||||||
|
|
Loading…
Add table
Reference in a new issue