Skip to content

Commit

Permalink
Update owner_naming when consensus changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Dec 28, 2023
1 parent 7a6e385 commit ccba05e
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ Has additional functionality to observations/show/section_update
it updates the obs title and name_info.
%>
<%
# debugger
# Temporary: this will catch all naming and vote update actions.
# Keeping it two lines for planned calls to other consensus methods.
# N+1: Move consensus to controllers when tackling naming_table n+1s.
consensus = Observation::NamingConsensus.new(obs)
owner_name = consensus.owner_preference
%>
<%= turbo_stream.replace("namings_table_rows") do
Expand All @@ -23,6 +27,10 @@ end %>
show_obs_title(obs: obs)
end %>
<%= turbo_stream.update("owner_naming") do
owner_naming_line(owner_name)
end %>
<%= turbo_stream.update("page_flash") do
flash_notices_html
end %>

0 comments on commit ccba05e

Please sign in to comment.