5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 03:36:21 +00:00

fix: poder vaciar el predefined value

This commit is contained in:
f 2024-10-21 16:18:27 -03:00
parent ee7d21030e
commit 795256f803
No known key found for this signature in database
3 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -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:

View file

@ -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"