mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 00:21:40 +02:00
Fix minor dashboard bugs
This commit is contained in:
parent
54b7d04639
commit
9951ec691e
3 changed files with 20 additions and 5 deletions
|
@ -54,7 +54,8 @@
|
|||
(if (:is-default project)
|
||||
[:h1.dashboard-title (t locale "dashboard.header.draft")]
|
||||
[:*
|
||||
[:div.main-bar-icon {:on-click on-menu-click} i/actions]
|
||||
[:h1.dashboard-title (t locale "dashboard.header.project" (:name project))]
|
||||
[:div.main-bar-icon {:on-click on-menu-click} i/arrow-down]
|
||||
[:& context-menu {:on-close on-menu-close
|
||||
:show (:menu-open @local)
|
||||
:options [[(t locale "dashboard.grid.edit") on-edit]
|
||||
|
@ -64,8 +65,7 @@
|
|||
:auto-focus true
|
||||
:on-key-down on-key-down
|
||||
:on-blur on-blur
|
||||
:default-value (:name project)}]
|
||||
[:h1.dashboard-title (t locale "dashboard.header.project" (:name project))])])
|
||||
:default-value (:name project)}])])
|
||||
[:a.btn-dashboard {:on-click #(do
|
||||
(dom/prevent-default %)
|
||||
(st/emit! (dsh/create-file project-id)))}
|
||||
|
@ -83,5 +83,4 @@
|
|||
[:*
|
||||
[:& project-header {:team-id team-id :project-id project-id}]
|
||||
[:section.projects-page
|
||||
[:& grid { :id project-id :files files :hide-new? true}]]]))
|
||||
|
||||
[:& grid { :id project-id :files files :hide-new? true}]]]))
|
Loading…
Add table
Add a link
Reference in a new issue