forked from shibao/cannery
mix format
This commit is contained in:
parent
8bb4aab49c
commit
c0179f48bd
@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
attrs () {
|
attrs () {
|
||||||
const attrs = this.el.getAttribute('data-attrs');
|
const attrs = this.el.getAttribute('data-attrs')
|
||||||
if (attrs) { return attrs.split(', '); } else { return []; }
|
if (attrs) { return attrs.split(', ') } else { return [] }
|
||||||
},
|
},
|
||||||
beforeUpdate () { this.prevAttrs = this.attrs().map(name => [name, this.el.getAttribute(name)]) },
|
beforeUpdate () { this.prevAttrs = this.attrs().map(name => [name, this.el.getAttribute(name)]) },
|
||||||
updated () { this.prevAttrs.forEach(([name, val]) => this.el.setAttribute(name, val)) }
|
updated () { this.prevAttrs.forEach(([name, val]) => this.el.setAttribute(name, val)) }
|
||||||
|
@ -6,7 +6,7 @@ defmodule Cannery.Ammo do
|
|||||||
import Ecto.Query, warn: false
|
import Ecto.Query, warn: false
|
||||||
alias Cannery.{Accounts.User, Containers, Repo}
|
alias Cannery.{Accounts.User, Containers, Repo}
|
||||||
alias Cannery.Ammo.{AmmoGroup, AmmoType}
|
alias Cannery.Ammo.{AmmoGroup, AmmoType}
|
||||||
alias Ecto.{Changeset, Multi}
|
alias Ecto.Changeset
|
||||||
|
|
||||||
@ammo_group_create_limit 10_000
|
@ammo_group_create_limit 10_000
|
||||||
|
|
||||||
|
@ -69,7 +69,6 @@
|
|||||||
) %>
|
) %>
|
||||||
|
|
||||||
<%= error_tag(f, :multiplier, "col-span-3 text-center") %>
|
<%= error_tag(f, :multiplier, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<% :edit -> %>
|
<% :edit -> %>
|
||||||
<%= submit(dgettext("actions", "Save"),
|
<%= submit(dgettext("actions", "Save"),
|
||||||
phx_disable_with: dgettext("prompts", "Saving..."),
|
phx_disable_with: dgettext("prompts", "Saving..."),
|
||||||
|
@ -159,11 +159,11 @@ msgid "Tag could not be removed"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:113
|
#: lib/cannery_web/live/ammo_group_live/form_component.ex:126
|
||||||
msgid "Could not parse number of copies"
|
msgid "Could not parse number of copies"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:98
|
#: lib/cannery_web/live/ammo_group_live/form_component.ex:111
|
||||||
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -68,7 +68,7 @@ msgid "Ammo group deleted succesfully"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:75
|
#: lib/cannery_web/live/ammo_group_live/form_component.ex:88
|
||||||
msgid "Ammo group updated successfully"
|
msgid "Ammo group updated successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -253,7 +253,7 @@ msgid "Creating..."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:134
|
#: lib/cannery_web/live/ammo_group_live/form_component.ex:147
|
||||||
msgid "Ammo group created successfully"
|
msgid "Ammo group created successfully"
|
||||||
msgid_plural "Ammo groups created successfully"
|
msgid_plural "Ammo groups created successfully"
|
||||||
msgstr[0] ""
|
msgstr[0] ""
|
||||||
|
Loading…
Reference in New Issue
Block a user