Skip to content

Commit

Permalink
EZP-30066: As an editor I would like to see current location marked a…
Browse files Browse the repository at this point in the history
…s selected in the content tree (#836)
  • Loading branch information
sunpietro committed Feb 18, 2019
1 parent 1cff3b3 commit a5e82ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -11,7 +11,12 @@
localStorage.setItem(KEY_CONTENT_TREE_EXPANDED, contentTreeContainer.classList.contains(CLASS_CONTENT_TREE_EXPANDED));
};

ReactDOM.render(React.createElement(eZ.modules.ContentTree, {}), contentTreeContainer);
ReactDOM.render(
React.createElement(eZ.modules.ContentTree, {
currentLocationId: parseInt(contentTreeContainer.dataset.currentLocationId, 10),
}),
contentTreeContainer
);

btn.addEventListener('click', toggleContentTreePanel, false);

Expand Down
2 changes: 1 addition & 1 deletion src/bundle/Resources/views/content/locationview.html.twig
Expand Up @@ -26,7 +26,7 @@
{% endblock left_sidebar %}

<div class="px-0 pb-4 ez-content-container">
<div class="ez-content-tree-container"></div>
<div class="ez-content-tree-container" data-current-location-id="{{ location.id }}"></div>
<div class="ez-location-view-container">
<div class="ez-header">
<div class="container">
Expand Down

0 comments on commit a5e82ef

Please sign in to comment.