Skip to content
Snippets Groups Projects
Commit 156c42b4 authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

SSDM-11608 : Navigation : collapse/expand all feature

parent 150809ad
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -27,7 +27,8 @@ export default class BrowserTreeController { ...@@ -27,7 +27,8 @@ export default class BrowserTreeController {
selectedObject: null, selectedObject: null,
expandedIds: {}, expandedIds: {},
expandAllIds: {}, expandAllIds: {},
sortingIds: {} sortingIds: {},
customSortings: {}
}) })
this.context = context this.context = context
this.lastTree = null this.lastTree = null
...@@ -545,6 +546,13 @@ export default class BrowserTreeController { ...@@ -545,6 +546,13 @@ export default class BrowserTreeController {
} else { } else {
delete state.expandedIds[nodeId] delete state.expandedIds[nodeId]
} }
state.expandAllIds = { ...state.expandAllIds }
Object.keys(state.expandAllIds).forEach(expandAllNodeId => {
if (nodeId.startsWith(expandAllNodeId)) {
delete state.expandAllIds[expandAllNodeId]
}
})
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment