Skip to content

Commit

Permalink
Merge pull request #2143 from skateman/explorer-tree-persist
Browse files Browse the repository at this point in the history
Store the expanded state of the explorer trees locally
  • Loading branch information
himdel authored Sep 11, 2017
2 parents 26ea2f4 + f399f1b commit 0029baa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/layouts/listnav/_explorer.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"ng-init" => "vm.initData('#{tree.name}', '#{tree.locals_for_render[:bs_tree]}', '#{tree.locals_for_render[:select_node]}')",
'on-select' => "vm.nodeSelect(node, '/#{request.parameters[:controller]}/tree_select')",
'selected' => "vm.selectedNodes['#{tree.name}']",
'persist' => 'key',
'lazy-load' => "(vm.lazyLoad(node, '#{tree.name}', '/#{request.parameters[:controller]}/tree_autoload'))"}
:javascript
miq_bootstrap('#accordion', 'ManageIQ.treeView');
Expand Down

0 comments on commit 0029baa

Please sign in to comment.