Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
Add .jpeg to list of default upload extensions
Dieser Commit ist enthalten in:
Ursprung
e7a1472a1c
Commit
3bb244be79
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
|
@ -36,7 +36,7 @@ class CustomWizard::Field
|
|||
min_length: nil
|
||||
},
|
||||
upload: {
|
||||
file_types: '.jpg,.png'
|
||||
file_types: '.jpg,.jpeg,.png'
|
||||
},
|
||||
dropdown: {
|
||||
prefill: nil,
|
||||
|
|
2
spec/fixtures/wizard.json
gevendort
2
spec/fixtures/wizard.json
gevendort
|
@ -90,7 +90,7 @@
|
|||
"id": "step_2_field_7",
|
||||
"label": "Upload",
|
||||
"type": "upload",
|
||||
"file_types": ".jpg,.png"
|
||||
"file_types": ".jpg,.jpeg,.png"
|
||||
}
|
||||
],
|
||||
"description": "<p>Because I couldn’t think of another name for this step <img src=\"/images/emoji/twitter/slight_smile.png?v=9\" title=\":slight_smile:\" class=\"emoji\" alt=\":slight_smile:\"></p>"
|
||||
|
|
|
@ -33,6 +33,6 @@ describe CustomWizard::FieldSerializer do
|
|||
).as_json
|
||||
expect(json_array[0][:format]).to eq("YYYY-MM-DD")
|
||||
expect(json_array[3][:number]).to eq(4)
|
||||
expect(json_array[6][:file_types]).to eq(".jpg,.png")
|
||||
expect(json_array[6][:file_types]).to eq(".jpg,.jpeg,.png")
|
||||
end
|
||||
end
|
||||
|
|
Laden …
In neuem Issue referenzieren