Skip to content

Commit

Permalink
wip: Update page update code for turbo streams
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Feb 2, 2024
1 parent b5ad765 commit 213c2bf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/views/alchemy/admin/pages/update.turbo_stream.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<alchemy-growl message="<%= @notice %>"></alchemy-growl>
<% if @page.layoutpage %>
<%= turbo_stream.replace @page do %>
<%= render "alchemy/admin/layoutpages/layoutpage", layoutpage: @page %>
<% end %>
<% else %>
<%= turbo_stream.replace @page do %>
<%= render "page", page: @page %>
<% end %>
<% end %>

0 comments on commit 213c2bf

Please sign in to comment.