From 054b1d0159af8f62d83dcaaa6eebd4e480b2ec80 Mon Sep 17 00:00:00 2001 From: Miro Palka Date: Mon, 17 Feb 2025 16:01:40 +0000 Subject: [PATCH] fix/PSD-3911-fix_breadcrumbs - Replace 'cases.label' with 'Notifications' in breadcrumbs --- app/controllers/application_controller.rb | 2 +- app/controllers/investigations_controller.rb | 2 +- .../notifications/add_supporting_images_controller.rb | 2 +- app/controllers/notifications/create_controller.rb | 2 +- app/controllers/notifications/edit_controller.rb | 2 +- app/controllers/notifications/test_reports_controller.rb | 2 +- app/controllers/notifications_controller.rb | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f0610d6922..4cfa700682 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -110,7 +110,7 @@ def set_investigation_breadcrumbs end def set_business_breadcrumbs - breadcrumb "businesses.label", :businesses_path + breadcrumb "Businesses", :businesses_path breadcrumb breadcrumb_business_label, breadcrumb_business_path breadcrumb @business.trading_name, business_path(@business) if @business&.persisted? end diff --git a/app/controllers/investigations_controller.rb b/app/controllers/investigations_controller.rb index b24956ab1a..7f8393dec0 100644 --- a/app/controllers/investigations_controller.rb +++ b/app/controllers/investigations_controller.rb @@ -6,7 +6,7 @@ class InvestigationsController < ApplicationController before_action :set_investigation, only: %i[show created cannot_close confirm_deletion destroy] before_action :set_last_case_view_cookie, only: %i[index your_cases assigned_cases team_cases] - breadcrumb "cases.label", :your_cases_investigations + breadcrumb "Notifications", :your_notifications_path # GET /cases def index diff --git a/app/controllers/notifications/add_supporting_images_controller.rb b/app/controllers/notifications/add_supporting_images_controller.rb index 34b3dc9caf..00e30ffd52 100644 --- a/app/controllers/notifications/add_supporting_images_controller.rb +++ b/app/controllers/notifications/add_supporting_images_controller.rb @@ -7,7 +7,7 @@ class AddSupportingImagesController < ApplicationController before_action :set_image_upload, only: [:show] before_action :set_remove_image_upload, only: [:remove_upload] - breadcrumb "cases.label", :your_cases_investigations + breadcrumb "Notifications", :your_notifications_path def show @image_upload = ImageUpload.new(upload_model: @notification) diff --git a/app/controllers/notifications/create_controller.rb b/app/controllers/notifications/create_controller.rb index bea5c06168..c69830a5f1 100644 --- a/app/controllers/notifications/create_controller.rb +++ b/app/controllers/notifications/create_controller.rb @@ -11,7 +11,7 @@ class CreateController < ApplicationController before_action :validate_step, except: %i[index from_product add_product remove_product remove_business] before_action :set_notification_product, only: %i[show_batch_numbers show_customs_codes show_ucr_numbers update_batch_numbers update_customs_codes update_ucr_numbers delete_ucr_number show_with_notification_product update_with_notification_product remove_with_notification_product] - breadcrumb "cases.label", :your_cases_investigations + breadcrumb "Notifications", :your_notifications_path def index if params[:notification_pretty_id].present? diff --git a/app/controllers/notifications/edit_controller.rb b/app/controllers/notifications/edit_controller.rb index c470de400f..0a81f20c7d 100644 --- a/app/controllers/notifications/edit_controller.rb +++ b/app/controllers/notifications/edit_controller.rb @@ -8,7 +8,7 @@ class EditController < ApplicationController before_action :set_steps before_action :setup_wizard before_action :validate_step, except: %i[index remove_business] - breadcrumb "cases.label", :your_cases_investigations + breadcrumb "Notifications", :your_notifications_path def index set_notification diff --git a/app/controllers/notifications/test_reports_controller.rb b/app/controllers/notifications/test_reports_controller.rb index 731a0bf287..cba636d7fd 100644 --- a/app/controllers/notifications/test_reports_controller.rb +++ b/app/controllers/notifications/test_reports_controller.rb @@ -8,7 +8,7 @@ class TestReportsController < ApplicationController before_action :set_test_result, only: %i[show_with_notification_product_test update_with_notification_product_test] before_action :set_test_result_list, only: %i[show_with_notification_product update_with_notification_product] - breadcrumb "cases.label", :your_cases_investigations + breadcrumb "Notifications", :your_notifications_path def index; end diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index 788feebb08..47ba5ceed3 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -6,7 +6,7 @@ class NotificationsController < ApplicationController before_action :set_last_case_view_cookie, only: %i[index] before_action :set_notification, except: %i[index your_notifications team_notifications assigned_notifications] - breadcrumb "cases.label", :your_cases_investigations + breadcrumb "Notifications", :your_notifications_path # GET /notifications def index