From f24647d2a8565eb6f7cd0862b08b153315bd9633 Mon Sep 17 00:00:00 2001 From: Joonas Date: Wed, 18 Dec 2024 12:19:57 +0200 Subject: [PATCH] Revert image_methods changes / Delete fountain modals --- .../concerns/decidim/ideas/image_methods.rb | 4 +--- app/views/decidim/ideas/ideas/_form.html.erb | 24 ------------------- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/app/commands/concerns/decidim/ideas/image_methods.rb b/app/commands/concerns/decidim/ideas/image_methods.rb index c3ed319..1c3f476 100644 --- a/app/commands/concerns/decidim/ideas/image_methods.rb +++ b/app/commands/concerns/decidim/ideas/image_methods.rb @@ -12,9 +12,7 @@ def build_image attached_to: @attached_to, # Keep first title: { I18n.locale.to_s => form_image["title"] }, file: form_image["file"], - weight: 0, - content_type: content_type_for(form_image), - file_size: form_image.bytesize + weight: 0 ) end diff --git a/app/views/decidim/ideas/ideas/_form.html.erb b/app/views/decidim/ideas/ideas/_form.html.erb index 96e848b..ddb4bcd 100644 --- a/app/views/decidim/ideas/ideas/_form.html.erb +++ b/app/views/decidim/ideas/ideas/_form.html.erb @@ -188,18 +188,6 @@ help_i18n_scope: "decidim.forms.file_help.image", extension_allowlist: Decidim::OrganizationSettings.for(current_organization).upload_allowed_file_extensions_image %> - -
-
-

<%= t(".image_legend") %>

- -
- -
-
<% end %> <% if component_settings.attachments_allowed? %> @@ -211,18 +199,6 @@ button_edit_label: t(".edit_attachment"), help_i18n_scope: "decidim.forms.file_help.file" %> - -
-
-

<%= t(".attachment_legend") %>

- -
- -
-
<% end %> <%= append_javascript_pack_tag "decidim_ideas_idea_form" %>