From 7369584f1555daec048735d3cd389e0a3e2051e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Fri, 10 Jan 2025 10:21:33 +0100 Subject: [PATCH] Add notice flash --- app/controllers/work_packages/dialogs_controller.rb | 1 + config/locales/en.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/controllers/work_packages/dialogs_controller.rb b/app/controllers/work_packages/dialogs_controller.rb index 2b59bbd5eaab..6a769576ebad 100644 --- a/app/controllers/work_packages/dialogs_controller.rb +++ b/app/controllers/work_packages/dialogs_controller.rb @@ -46,6 +46,7 @@ def create call = WorkPackages::CreateService.new(user: current_user).call(create_params) if call.success? + flash[:notice] = I18n.t("work_package_relations_tab.relations.label_new_child_created") redirect_back fallback_location: project_work_package_path(@project, call.result), status: :see_other else form_component = WorkPackages::Dialogs::CreateFormComponent.new(work_package: call.result, project: @project) diff --git a/config/locales/en.yml b/config/locales/en.yml index e94cc9e0c4c2..c44c56df905b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -749,6 +749,7 @@ en: title: "Lag (in days)" caption: "The minimum number of working days to keep in between the two work packages." relations: + label_new_child_created: "New work package created and added as a child" label_relates_singular: "related to" label_relates_plural: "related to" label_relates_to_singular: "related to"