-
-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates to right sidebar #2279
Updates to right sidebar #2279
Conversation
position is borked
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -47,6 +47,15 @@ | |||
(:username current-user))) | |||
|
|||
|
|||
(rf/reg-sub | |||
:presence/user-page | |||
:<- [:presence/current-username] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what should happen here is :presence/current-username
returns You
when in PKM. That way other features get this behaviour automatically.
But other features might already be checking if PKM or CKM as well so this refactor might be a bit harder. I think I'll tackle it in another PR.
(fn [e] (router/navigate-uid uid e))) | ||
:onClickOpenInSidebar (when-not (contains? @(subscribe [:right-sidebar/items]) uid) | ||
#(dispatch [:right-sidebar/open-item uid]))} | ||
[:> PageHeader {:onClickOpenInSidebar (when-not @(subscribe [:right-sidebar/contains-item? [:block/uid uid]]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is onClickOpenInMainView
not supported here anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it should be removed, except on daily notes.
@{{presence-name}}
to store the sidebar state. uses@You
if in PKMonClickOpenInMainView
to always be in the right sidebar item, rather than within the embedded page view of right sidebar item'shttps://www.loom.com/share/68de592360b946efa2dae202eb9e0741?focus_title=1&muted=1&from_recorder=1