Compare commits
1 Commits
6083fbca4f
...
cfbec3189c
Author | SHA1 | Date | |
---|---|---|---|
cfbec3189c |
@ -87,7 +87,7 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
|
|||||||
%{label: gettext("Rounds shot"), key: :count},
|
%{label: gettext("Rounds shot"), key: :count},
|
||||||
%{label: gettext("Notes"), key: :notes},
|
%{label: gettext("Notes"), key: :notes},
|
||||||
%{label: gettext("Date"), key: :date},
|
%{label: gettext("Date"), key: :date},
|
||||||
%{label: nil, key: "actions", sortable: false}
|
%{label: nil, key: :actions, sortable: false}
|
||||||
]
|
]
|
||||||
|
|
||||||
rows =
|
rows =
|
||||||
|
@ -79,7 +79,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
|||||||
|
|
||||||
ammo_types
|
ammo_types
|
||||||
|> Enum.any?(fn ammo_type ->
|
|> Enum.any?(fn ammo_type ->
|
||||||
not (ammo_type |> Map.get(key |> String.to_existing_atom()) == default_value)
|
not (ammo_type |> Map.get(key) == default_value)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|> Kernel.++([
|
|> Kernel.++([
|
||||||
|
@ -81,7 +81,7 @@ defmodule CanneryWeb.RangeLive.Index do
|
|||||||
%{label: gettext("Rounds shot"), key: :count},
|
%{label: gettext("Rounds shot"), key: :count},
|
||||||
%{label: gettext("Notes"), key: :notes},
|
%{label: gettext("Notes"), key: :notes},
|
||||||
%{label: gettext("Date"), key: :date},
|
%{label: gettext("Date"), key: :date},
|
||||||
%{label: nil, key: "actions", sortable: false}
|
%{label: nil, key: :actions, sortable: false}
|
||||||
]
|
]
|
||||||
|
|
||||||
rows =
|
rows =
|
||||||
|
Loading…
Reference in New Issue
Block a user