diff --git a/decidim-proposals/app/controllers/decidim/proposals/proposals_controller.rb b/decidim-proposals/app/controllers/decidim/proposals/proposals_controller.rb index d2c969909176a..9836837024b24 100644 --- a/decidim-proposals/app/controllers/decidim/proposals/proposals_controller.rb +++ b/decidim-proposals/app/controllers/decidim/proposals/proposals_controller.rb @@ -58,7 +58,11 @@ def create CreateProposal.call(@form, current_user) do on(:ok) do |proposal| - flash[:notice] = I18n.t("proposals.create.success", scope: "decidim") + if proposal.feature.settings.upstream_moderation_enabled + flash[:notice] = I18n.t("proposals.create.moderation.success", scope: "decidim") + else + flash[:notice] = I18n.t("proposals.create.success", scope: "decidim") + end redirect_to proposal_path(proposal) end diff --git a/decidim-proposals/config/locales/en.yml b/decidim-proposals/config/locales/en.yml index 3c74b66a4a517..1b0ab39e49dd3 100644 --- a/decidim-proposals/config/locales/en.yml +++ b/decidim-proposals/config/locales/en.yml @@ -93,7 +93,9 @@ en: rejected: Rejected create: error: There's been errors when saving the proposal. - success: Proposal successfully created. It will be published as soon as an administrator will have authorized it. + success: Proposal successfully created. + moderation: + success: Proposal successfully created. It will be published as soon as an administrator will have authorized it. events: create_proposal_event: email_intro: |- diff --git a/decidim-proposals/config/locales/fr.yml b/decidim-proposals/config/locales/fr.yml index addf40190b3d7..46b4e2c1cca72 100644 --- a/decidim-proposals/config/locales/fr.yml +++ b/decidim-proposals/config/locales/fr.yml @@ -92,7 +92,9 @@ fr: rejected: Refusée create: error: Il y a eu des erreurs lors de la sauvegarde de la proposition. - success: Proposition créée avec succès. Elle sera publiée dès qu'un administrateur l'aura validée. + success: Proposition créée avec succès. + moderation: + success: Proposition créée avec succès. Elle sera publiée dès qu'un administrateur l'aura validée. events: create_proposal_event: email_intro: |-