-
Notifications
You must be signed in to change notification settings - Fork 2k
Conversation
d382290
to
dca76a4
Compare
@codydaig I've tested this, and it works as expected. However, I'm having an issue with the It doesn't make sense that I would need to set topbar We'd have to modify the Anyone else have any input on this? @rhutchison @trainerbill |
@mleanos The way I went about this implementation is that all menu items have a default isPublic value of false. However SubMenuItems inherit their parent's isPublic status still.
That is what this PR fixes. It makes the topBar public by default.
If i'm understanding your proposal correctly: Having the isPublic option on the menu bar allows people to create navigation bars that you must be logged in for it to show at all. However, that option can be left out and it defaults to true. |
@codydaig I realize that the What I'm trying to wrap my head around is the purpose of the This line seems to be useless https://github.com/meanjs/mean/blob/master/modules/core/client/services/menus.client.service.js#L27 as it only serves as an override; when the settings on the Menu items should determine this. If I don't set any of my Menu Items' My proposed change would look something like this...
If the user isn't authenticated, then we should check if there are any Menu items that do allow public viewing. |
Sounds Good. I've got a proposed solution coming soon. Thanks for the feedback! :-D |
@rhutchison @mleanos I know the build will probably fail because I haven't modified the tests yet. But, I wanted to get your opinions on this strategy of removing the isPublic. It removes the isPublic option and relies on the roles to determine if it should render or not. '*' means it will render for everyone, including users that are not logged in. And since every user gets created with the 'user' role, then you just have to add the 'user' to the list of allowed roles to make it so only people who are logged in can view it. I'm open to suggestions, this was just the fix that came into mind first. |
c1f78f4
to
fcadb88
Compare
@codydaig I know we've talked quite a bit about this on Gitter yesterday... Just wanna get this out to the rest of the team. From my perspective, the Menu My other consideration would be the use of the However, removing the render check, on the Menu, in the header client view might be too big of a change right now? At least before we get a decent consensus from the community. @lirantal @rhutchison @cdriscol @danaronoff @igorauad @lirantal @AlexisTM |
fcadb88
to
c4bd515
Compare
@mleanos I removed the tests that check for isPublic since I removed that option and solely rely on the roles option. It's ready for review! :-D |
@codydaig I think this looks good, and I've tested it. Everything works as expected... I made some modifications that address the issues we've talked about. Can you review this, and see if it's in line with those concerns? If this doesn't look good enough, and we're not ready to make these changes, then I say this PR is good to go as is. |
e63a340
to
1f7bfdd
Compare
@codydaig This looks good. I've tested. Thank you for working with me on this. I think this is the right way to implement these changes. LGTM. From my perspective, this is ready to be merged. @rhutchison @lirantal any feedback? |
Good then |
Make TopBar Public By Default
I think there are some issues after this merge. |
@anupjha I don't think this is an issue with the merge, or anything else related to the code. I've seen the issue with the Display Name showing up in place of the User's avatar. Is this what your experiencing? If so, it's most likely caused by the User's As far as those other issues, I can't reproduce. Can you check additional factors that might be causing issues on your end? For instance, your application by not be loading properly due to missing dependencies. |
@anupjha If your still having issues, go ahead and open a issue. Since this was merged in, the discussion is bound to get lost. |
In reference to #583.