From f399f1bcb6680baf6e2e9126a7263341bc9f7767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Hal=C3=A1sz?= Date: Fri, 8 Sep 2017 10:07:07 +0200 Subject: [PATCH] Store the expanded state of the explorer trees locally --- app/views/layouts/listnav/_explorer.html.haml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/layouts/listnav/_explorer.html.haml b/app/views/layouts/listnav/_explorer.html.haml index 27cba95620b..2159c7ccccd 100644 --- a/app/views/layouts/listnav/_explorer.html.haml +++ b/app/views/layouts/listnav/_explorer.html.haml @@ -12,6 +12,7 @@ "ng-init" => "vm.initSelected('#{tree.name}', '#{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');