Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Add collapsed state for storage#2144

Merged
sosukesuzuki merged 2 commits into
BoostIO:masterfrom
kelvin-wong:retain-collapsed-storage-state
Jun 30, 2018
Merged

Add collapsed state for storage#2144
sosukesuzuki merged 2 commits into
BoostIO:masterfrom
kelvin-wong:retain-collapsed-storage-state

Conversation

@kelvin-wong

Copy link
Copy Markdown
Contributor

The root cause of this issue is that when the folder is clicked,
the router pushed the path and the StorageItem component has been
refreshed and isOpen has been reset

  • Add storing collapse state for storage
  • Add tests
  • Default as collapsed for fallback

fix #1979 #1911

The root cause of this issue is that when the folder is clicked,
the router pushed the path and the StorageItem component has been
refreshed and isOpen has been reset

- Add storing collapse state for storage
- Add tests
- Default as collapsed for fallback

fix #1979 #1911

@sosukesuzuki sosukesuzuki left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for your contribution:+1:
Please confirm my review!

Comment thread browser/main/SideNav/StorageItem.js Outdated
.then((storage) => {
dispatch({
type: 'EXPAND_STORAGE',
storage: storage,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

please write like below:

dispatch({
  type: 'EXPAND_STORAGE',
  storage,
  isOpen
})

@sosukesuzuki sosukesuzuki left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'll merge this PR after release next version(v0.11.7)!

@sosukesuzuki sosukesuzuki added next release (v0.11.8) and removed awaiting review ❇️ Pull request is awaiting a review. labels Jun 29, 2018
@kelvin-wong

Copy link
Copy Markdown
Contributor Author

@sosukesuzuki Thanks!

@sosukesuzuki sosukesuzuki merged commit 827e3c1 into BoostIO:master Jun 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants