We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 782784c commit c95b6e9Copy full SHA for c95b6e9
app/forms/concerns/decidim/reporting_proposals/form_builder_override.rb
@@ -12,6 +12,7 @@ module FormBuilderOverride
12
included do
13
def file_field(object_name, options = {})
14
return super(object_name, options) unless Decidim::ReportingProposals.use_camera_button
15
+ return super(object_name, options) if @object_name == "editor_image" || @object_name == "oauth_application"
16
17
unless @template.snippets.any?(:reporting_proposals_camera_scripts) || @template.snippets.any?(:reporting_proposals_camera_styles)
18
@template.snippets.add(:reporting_proposals_camera_scripts, @template.prepend_javascript_pack_tag("decidim_reporting_proposals_camera"))
0 commit comments