mirror of
https://github.com/logseq/logseq.git
synced 2026-05-28 14:39:48 +00:00
enhance(logbook): add two-level options to show logbook
This PR offer two options to control when the logbook drawer shows in your block. - `:logbook/enabled-in-timestamped-blocks`: This option defaults to true, which means that the logbook drawer will be visible in blocks only with scheduled or deadline timestamp after timetracking. - `:logbook/enabled-in-all-blocks`: This option defaults to nil. Adding `:logbook/enabled-in-all-blocks true` to your config file will enable the logbook shown-up for all blocks after timetracking.
This commit is contained in:
@@ -2531,7 +2531,8 @@
|
||||
(when (or (not= name "logbook")
|
||||
(and
|
||||
(= name "logbook")
|
||||
(state/enable-timetracking?)))
|
||||
(state/enable-timetracking?)
|
||||
(:drawer/logbook (state/get-config))))
|
||||
[:div.flex.flex-col
|
||||
[:div.text-sm.mt-1.flex.flex-row
|
||||
[:div.drawer {:data-drawer-name name}
|
||||
|
||||
Reference in New Issue
Block a user