-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/expanded nodes are stored in the page session so that the str…
…ucture of the nav tree is retained after editing a menu (#153) * feat: store expanded/collapsed nodes in JS session object When editing a menu, the expanded/collapsed nodes are stored in a session object that lasts until the tab is closed. This allows the user to edit the menu, or delete a node, and when the menu reloads, they are displayed the menu with the same nodes still open. * feat: store expanded/collapsed for multiple menus Updates the JS so that the ID of the menu is used when storing the expanded/collapsed node ID's. This change means storing an array of IDs for each menu as a json string. By storing session data unique for the menu object it stops the session data being used for the wrong menu object, and allows multiple menu states to be stored in a session. * fix: update changelog Co-authored-by: Michael Collins <[email protected]>
- Loading branch information
1 parent
13e39df
commit 6464f9f
Showing
5 changed files
with
64 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters