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

Story branching support for sidebar links. #24968

Merged
merged 2 commits into from Oct 18, 2019

Conversation

gmajoulet
Copy link
Contributor

Updating Pet's work from #20944

cc @bramanudom

#20083

@gmajoulet
Copy link
Contributor Author

Friendly ping (for when the summit is over) :)

);
// If open, closes the sidebar before navigating.
const promise = this.storeService_.get(StateProperty.SIDEBAR_STATE)
? Services.historyForDoc(this.getAmpDoc()).goBack()
Copy link
Contributor

Choose a reason for hiding this comment

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

curious: why do we do this instead of doing a dispatch(TOGGLE_SIDEBAR, false) to close the sidebar?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Setting SIDEBAR_STATE to false would update the Story UI but would not run any code within amp-sidebar. We'd still have the sidebar history entry, its listeners, etc.

@gmajoulet gmajoulet merged commit 13a2e75 into ampproject:master Oct 18, 2019
@gmajoulet gmajoulet deleted the branching_links_sidebar branch October 18, 2019 18:15
jeffjose pushed a commit to jeffjose/amphtml that referenced this pull request Oct 19, 2019
* Squash Pet's commits.

* Links in sidebar fixes.
joshuarrrr pushed a commit to Parsely/amphtml that referenced this pull request Oct 22, 2019
* Squash Pet's commits.

* Links in sidebar fixes.
micajuine-ho pushed a commit to micajuine-ho/amphtml that referenced this pull request Dec 27, 2019
* Squash Pet's commits.

* Links in sidebar fixes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants