0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

Change the default ordering on projects dashboard.

This commit is contained in:
Andrey Antukh 2016-11-12 12:03:25 +01:00
parent 96d66b275c
commit 6273b05c51
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -103,7 +103,7 @@
(mx/defc menu
{:mixins [mx/static]}
[state projects]
(let [ordering (:order state :name)
(let [ordering (:order state :created)
filtering (:filter state "")
count (count projects)]
(letfn [(on-term-change [event]
@ -228,7 +228,7 @@
(mx/defc grid
{:mixins [mx/static]}
[state projects]
(let [ordering (:order state :name)
(let [ordering (:order state :created)
filtering (:filter state "")
projects (->> (vals projects)
(filter-projects-by filtering)