scinote-web/app/views/shared/navigation/_navigator.html.erb

16 lines
613 B
Text
Raw Normal View History

<% if @navigator %>
2023-04-21 21:25:52 +08:00
<%= hidden_field_tag :active_navigator_item, @navigator[:id] %>
<%= hidden_field_tag :active_navigator_url, @navigator[:url] %>
<%= hidden_field_tag :active_navigator_archived, @navigator[:archived] %>
<% end %>
<div id="sciNavigationNavigatorContainer"
class="contents"
data-navigator-state-url="<%= navigator_state_navigations_path %>"
data-turbolinks-permanent data-behaviour="vue">
<navigator-container
@navigator:colapse="toggleNavigatorState(true)"
2023-04-26 16:24:50 +08:00
:reload-current-level="reloadCurrentLevel"
:reload-children-level="reloadChildrenLevel"
/>
</div>