5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 18:36:23 +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
# 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"
new_predefined_array:
edit: "Edit"
new_predefined_value:
empty: "(Empty)"
new_array:
edit: "Edit"
new_has_one:

View file

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