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

[default-layout] Reset tool when selecting active tool #1196

Merged
merged 2 commits into from
Feb 17, 2019

Conversation

kristofferjs
Copy link
Contributor

When clicking on the current active tool it is expected that the tool resets to its initial state.
Let me know if this is an ok way of doing it.

@bjoerge bjoerge force-pushed the reset-tool-when-clicking-existing branch 3 times, most recently from d069a8c to de297cc Compare February 15, 2019 07:29
@bjoerge bjoerge force-pushed the reset-tool-when-clicking-existing branch from de297cc to 4cce3d3 Compare February 15, 2019 07:37
@bjoerge
Copy link
Member

bjoerge commented Feb 15, 2019

Looks good! I did a tiny rewrite in order to make it more future proof by having less assumptions about which router state keys might or might not be present.

@kristofferjs kristofferjs merged commit 5f91381 into next Feb 17, 2019
@kristofferjs kristofferjs deleted the reset-tool-when-clicking-existing branch February 17, 2019 07:50
kristofferjs pushed a commit that referenced this pull request Feb 19, 2019
* [default-layout] Reset tool when selecting existing

* [default-layout] Reset tool router in a less assumptious way
bjoerge pushed a commit that referenced this pull request Mar 6, 2019
* [default-layout] Reset tool when selecting existing

* [default-layout] Reset tool router in a less assumptious way
bjoerge pushed a commit that referenced this pull request Aug 13, 2019
* [default-layout] Reset tool when selecting existing

* [default-layout] Reset tool router in a less assumptious way
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.

None yet

2 participants