<% if @node.root? %>
<turbo-stream action="update" target="drawer-structure">
  <template>
    <%= render partial: 'node', collection: Node.roots.ordered, formats: :html %>    
  </template>
</turbo-stream>
<% end %>

<% if @node.parent %>
<turbo-stream action="replace" targets="#<%= dom_id(@node.parent) %>.loaded">
  <template>
    <%= render partial: 'node', object: @node.parent, formats: :html %>    
  </template>
</turbo-stream>
<% end %>