add ammo type live test for empty ammo groups

This commit is contained in:
2022-11-08 20:36:03 -05:00
parent 1d8f3360d8
commit ffd1029e78
3 changed files with 39 additions and 4 deletions

View File

@ -95,11 +95,12 @@ defmodule CanneryWeb.ViewHelpers do
~H"""
<label for={@id} class="inline-flex relative items-center cursor-pointer">
<input
id={@id}
type="checkbox"
value={@value}
checked={@value}
id={@id}
class="sr-only peer"
data-qa={@id}
{
if assigns |> Map.has_key?(:target),
do: %{"phx-click" => @action, "phx-value-value" => @value, "phx-target" => @target},