Skip to content

Commit

Permalink
don't toggle switches on websocket reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthakumaran committed Dec 1, 2023
1 parent ade9853 commit a4b3c87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/exq_ui_web/live/busy_live/index.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<td>
<div class="d-flex align-items-center">
<span class="me-2"><%= node.identity %></span>
<%= form_for :signal, "#", [id: "node-#{node.identity}", phx_change: :signal, class: "mb-0 form-check form-switch form-check-inline"], fn f -> %>
<%= form_for :signal, "#", [id: "node-#{node.identity}", phx_auto_recover: :ignore, phx_change: :signal, class: "mb-0 form-check form-switch form-check-inline"], fn f -> %>
<%= hidden_input(f, :name, value: "TSTP") %>
<%= hidden_input(f, :node_id, value: node.identity) %>
<%= checkbox(f, :quiet,
Expand Down
2 changes: 1 addition & 1 deletion lib/exq_ui_web/live/recurring_live/index.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<%= for item <- @items do %>
<tr>
<td>
<%= form_for :active, "#", [id: "schedule-#{item.schedule.name}", phx_change: :active, class: "mb-0 form-check form-switch form-check-inline", style: "margin: auto;display: flex;justify-content: center"], fn f -> %>
<%= form_for :active, "#", [id: "schedule-#{item.schedule.name}", phx_auto_recover: :ignore, phx_change: :active, class: "mb-0 form-check form-switch form-check-inline", style: "margin: auto;display: flex;justify-content: center"], fn f -> %>
<%= hidden_input(f, :name, value: item.schedule.name) %>
<%= hidden_input(f, :enabled, value: !item.schedule.schedule_opts.enabled) %>
<%= checkbox(f, :toggle,
Expand Down

0 comments on commit a4b3c87

Please sign in to comment.