mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 08:04:40 +00:00
enhance: add tasks and assets to sidebar
Make useful new tag pages easier to discover
This commit is contained in:
@@ -354,6 +354,24 @@
|
||||
:icon "calendar"
|
||||
:shortcut :go/journals})))
|
||||
|
||||
(when db-based?
|
||||
(let [tag-uuid (:block/uuid (db/entity :logseq.class/Task))]
|
||||
(sidebar-item
|
||||
{:class "task-view-nav"
|
||||
:title (t :left-side-bar/tasks)
|
||||
:href (rfe/href :page {:name tag-uuid})
|
||||
:active (= (str tag-uuid) (get-in route-match [:path-params :name]))
|
||||
:icon "hash"})))
|
||||
|
||||
(when db-based?
|
||||
(let [tag-uuid (:block/uuid (db/entity :logseq.class/Asset))]
|
||||
(sidebar-item
|
||||
{:class "asset-view-nav"
|
||||
:title (t :left-side-bar/assets)
|
||||
:href (rfe/href :page {:name tag-uuid})
|
||||
:active (= (str tag-uuid) (get-in route-match [:path-params :name]))
|
||||
:icon "hash"})))
|
||||
|
||||
(when enable-whiteboards?
|
||||
(when (or config/dev? (not db-based?))
|
||||
(sidebar-item
|
||||
|
||||
Reference in New Issue
Block a user