Skip to content

Commit 4d7fb94

Browse files
committed
fix(page_status): fallback to page.public?
If the local variable published is defined and set to false (because it has not been published via the turbo stream action) we still need to display the actual publication state of the page. (cherry picked from commit dd3f733)
1 parent 9cd46ea commit 4d7fb94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/alchemy/admin/pages/_page_status.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<span class="page_status">
2-
<% if local_assigns.fetch(:published, page.public?) %>
2+
<% if local_assigns[:published] || page.public? %>
33
<%= render_icon(:cloud, size: "1x") %>
44
<% else %>
55
<%= render_icon("cloud-off", size: "1x", class: "disabled") %>

0 commit comments

Comments
 (0)