-
Notifications
You must be signed in to change notification settings - Fork 208
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
O3-2407: App Menu and User Menu should hide if their panel has no con… #768
Conversation
@@ -33,11 +33,12 @@ const Navbar: React.FC = () => { | |||
const [activeHeaderPanel, setActiveHeaderPanel] = useState<string>(null); | |||
const allowedLocales = session?.allowedLocales ?? null; | |||
const layout = useLayoutType(); | |||
const navMenuItems = useAssignedExtensions( | |||
const navMenuItems = useConnectedExtensions( |
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.
this is tangential, but it looks like useConnectedExtensions is now preferred over useAssignedExtensions because it takes into account how feature toggles and offline/online affects what extensions are available?
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.
Yeah. At some point we should probably remove this distinction.
Size Change: +43 B (0%) Total Size: 2.81 MB ℹ️ View Unchanged
|
i will have to dig in and see why the compile is failing... it appears to work for me when I test locally, have to dive in deeper to see what is different. |
Okay, this was my bad, can reproduce locally now |
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.
Error aside, LGTM. Thanks @mogoodrich!
…tents (fix tests)
Fixed the test error in a follow-on commit. |
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.
Nice work, @mogoodrich!
Thanks @denniskigen and @ibacher , merging! |
useSession, | ||
useConfig, | ||
useConnectedExtensions, | ||
useConfig |
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.
Missing trailing comma here, I think.
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.
Oops, thanks @denniskigen ... that's what I get for trying to merge directly within github :) fixing now...
…tents (fix tests)
See: https://issues.openmrs.org/browse/O3-2407