mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 23:16:22 +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
|
||||
|
||||
# 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"
|
||||
new_predefined_array:
|
||||
edit: "Edit"
|
||||
new_predefined_value:
|
||||
empty: "(Empty)"
|
||||
new_array:
|
||||
edit: "Edit"
|
||||
new_has_one:
|
||||
|
|
|
@ -768,8 +768,10 @@ es:
|
|||
new_has_and_belongs_to_many:
|
||||
edit: "Editar"
|
||||
new_predefined_array:
|
||||
empty: "(Vacío)"
|
||||
edit: "Editar"
|
||||
new_predefined_value:
|
||||
empty: "(Vacío)"
|
||||
edit: "Editar"
|
||||
new_array:
|
||||
edit: "Editar"
|
||||
|
|
Loading…
Reference in a new issue