Mattias Bodlund 1 month ago
parent
commit
471b72d615
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/views/game/last_save.html.erb
  2. +1
    -1
      app/views/game/stage.html.erb

+ 1
- 1
app/views/game/last_save.html.erb View File

@ -20,7 +20,7 @@
<article class="answers-container" data-controller="chance">
<% @node.children.each do |node| %>
<% @node.children.ordered.each do |node| %>
<%= button_to node.title, url_for(action: "answer_last_save", value: node.id) %>
<% end %>


+ 1
- 1
app/views/game/stage.html.erb View File

@ -17,7 +17,7 @@
</article>
<article class="answers-container" data-controller="chance">
<% @node.children.each do |node| %>
<% @node.children.ordered.each do |node| %>
<%= button_to node.title, url_for(action: "answer", value: node.id),
class: ("chance" if node.chance?),
form: ((stage_index == 1 and node.chance?) ? { data: { action: "submit->chance#confirm" } } : {}) %>


Loading…
Cancel
Save