FloKaemmerer / dynamic-atlas

Searchable Path of Exile Atlas
MIT License
2 stars 1 forks source link

Click on same atlas node again should reset the atalasNodeStore #55

Closed weilun-chiu closed 11 months ago

weilun-chiu commented 1 year ago

Add a new quality of life feature which enable user to close the information window on the right-hand side for an atlas node, simply double-click the node in the Atlas.

weilun-chiu commented 1 year ago

Hi, I add a reset action for atlas node and replace the broken usage of atlasNodeStore.SET_SELECTED_ATLAS_NODE(null).

It's my first time contributing to others project if there is any further issue kindly let me know :) btw this project is really cool!

FloKaemmerer commented 1 year ago

Sorry it took me so long to come back to this PR.

Thinking about it, The correct way to close the drawer when the same node is clicked again would be setting the flag that controlls it to false and incase the node is click and its still the same node in store also check the flag.

like "If clicked node === clicked node && flase" => open "If clicked node === clicked node && true" => close