Skip to content

Commit

Permalink
fix/PSD-3911-fix_breadcrumbs - Replace 'cases.label' with 'Notificati…
Browse files Browse the repository at this point in the history
…ons' in breadcrumbs
  • Loading branch information
mirotriad committed Feb 17, 2025
1 parent 12b5807 commit 054b1d0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/investigations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/notifications/create_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/notifications/edit_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/notifications/test_reports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/notifications_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 054b1d0

Please sign in to comment.