mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 03:16:23 +00:00
fix: poder vaciar el predefined value
This commit is contained in:
parent
ee7d21030e
commit
795256f803
3 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,8 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Nueva interfaz
|
# Nueva interfaz
|
||||||
class MetadataNewPredefinedValue < MetadataPredefinedValue; end
|
class MetadataNewPredefinedValue < MetadataPredefinedValue
|
||||||
|
def values
|
||||||
|
@values ||= (required ? {} : { I18n.t('posts.attributes.new_predefined_value.empty') => '' }).merge(super)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
|
@ -761,6 +761,8 @@ en:
|
||||||
edit: "Edit"
|
edit: "Edit"
|
||||||
new_predefined_array:
|
new_predefined_array:
|
||||||
edit: "Edit"
|
edit: "Edit"
|
||||||
|
new_predefined_value:
|
||||||
|
empty: "(Empty)"
|
||||||
new_array:
|
new_array:
|
||||||
edit: "Edit"
|
edit: "Edit"
|
||||||
new_has_one:
|
new_has_one:
|
||||||
|
|
|
@ -768,8 +768,10 @@ es:
|
||||||
new_has_and_belongs_to_many:
|
new_has_and_belongs_to_many:
|
||||||
edit: "Editar"
|
edit: "Editar"
|
||||||
new_predefined_array:
|
new_predefined_array:
|
||||||
|
empty: "(Vacío)"
|
||||||
edit: "Editar"
|
edit: "Editar"
|
||||||
new_predefined_value:
|
new_predefined_value:
|
||||||
|
empty: "(Vacío)"
|
||||||
edit: "Editar"
|
edit: "Editar"
|
||||||
new_array:
|
new_array:
|
||||||
edit: "Editar"
|
edit: "Editar"
|
||||||
|
|
Loading…
Reference in a new issue