Compare commits

..

1 Commits

Author SHA1 Message Date
6083fbca4f display used-up date on used-up ammo
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2022-11-07 01:36:28 -05:00
3 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
%{label: gettext("Rounds shot"), key: :count},
%{label: gettext("Notes"), key: :notes},
%{label: gettext("Date"), key: :date},
%{label: nil, key: :actions, sortable: false}
%{label: nil, key: "actions", sortable: false}
]
rows =

View File

@ -79,7 +79,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
ammo_types
|> Enum.any?(fn ammo_type ->
not (ammo_type |> Map.get(key) == default_value)
not (ammo_type |> Map.get(key |> String.to_existing_atom()) == default_value)
end)
end)
|> Kernel.++([

View File

@ -81,7 +81,7 @@ defmodule CanneryWeb.RangeLive.Index do
%{label: gettext("Rounds shot"), key: :count},
%{label: gettext("Notes"), key: :notes},
%{label: gettext("Date"), key: :date},
%{label: nil, key: :actions, sortable: false}
%{label: nil, key: "actions", sortable: false}
]
rows =