Skip to content
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

Klarocca/side menu #144

Merged
merged 7 commits into from
Sep 10, 2020
Merged

Klarocca/side menu #144

merged 7 commits into from
Sep 10, 2020

Conversation

kimlarocca
Copy link
Member

Added an option to not have the side menu in the header like we discussed

outOfViewport=this.outOfViewport
rules=this.rules
)}}
{{#if @showMenuButton}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you put this conditional into the nypr-o-header/left.hbs template instead, you won't need to use two separate components or duplicate this block

data-test-main-header
as |header|
>
<header.left data-test-header-left as |left|>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the change suggested above this part of the example would become
<header.left @showMenuButton=false as |left|>

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we make this change, we'd have to set the showMenuButton=true or =false for all the headers

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can have a default, the same as if we set it in the top level.

@kimlarocca kimlarocca merged commit 3c61992 into main Sep 10, 2020
@kimlarocca kimlarocca deleted the klarocca/side-menu branch September 10, 2020 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants