Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 01:10:28 +01:00
Add integer data type to custom field feature
Dieser Commit ist enthalten in:
Ursprung
cf8b06bbd0
Commit
4e094edc7b
3 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
|
@ -15,7 +15,7 @@ export default Component.extend({
|
|||
postSerializers: ['post'],
|
||||
categorySerializers: ['basic_category', 'topic_view', 'topic_list_item'],
|
||||
klassContent: generateContent(['topic', 'post', 'group', 'category'], 'klass'),
|
||||
typeContent: generateContent(['string', 'boolean', 'json'], 'type'),
|
||||
typeContent: generateContent(['string', 'boolean', 'integer', 'json'], 'type'),
|
||||
showInputs: or('field.new', 'field.edit'),
|
||||
|
||||
@discourseComputed('field.klass')
|
||||
|
|
|
@ -290,6 +290,7 @@ en:
|
|||
label: "Type"
|
||||
select: "Select a type"
|
||||
string: "String"
|
||||
integer: "Integer"
|
||||
boolean: "Boolean"
|
||||
json: "JSON"
|
||||
klass:
|
||||
|
|
|
@ -4,7 +4,7 @@ class ::CustomWizard::CustomField
|
|||
|
||||
CLASSES ||= ["topic", "group", "category", "post"]
|
||||
SERIALIZERS ||= ["topic_view", "topic_list_item", "post", "basic_category"]
|
||||
TYPES ||= ["string", "boolean", "json"]
|
||||
TYPES ||= ["string", "boolean", "integer", "json"]
|
||||
ATTRS ||= ["name", "klass", "type", "serializers"]
|
||||
KEY ||= "custom_wizard_custom_fields"
|
||||
|
||||
|
|
Laden …
In neuem Issue referenzieren