Browse Source

Notification path regex should work on review apps

pull/2613/head
Rachael Booth 2 years ago
parent
commit
2b50a0bf79
  1. 2
      app/helpers/application_helper.rb
  2. 2
      app/helpers/navigation_items_helper.rb

2
app/helpers/application_helper.rb

@ -28,7 +28,7 @@ module ApplicationHelper
end end
def notifications_to_display? def notifications_to_display?
!request.path.match?(/^\/notifications\/\d+$/) && (authenticated_user_has_notifications? || unauthenticated_user_has_notifications?) !request.path.match?(/\/notifications\/\d+$/) && (authenticated_user_has_notifications? || unauthenticated_user_has_notifications?)
end end
private private

2
app/helpers/navigation_items_helper.rb

@ -47,7 +47,7 @@ module NavigationItemsHelper
private private
def home_current?(path) def home_current?(path)
path == root_path || path.match?(/^\/notifications\/\d+$/) path == root_path || path.match?(/\/notifications\/\d+$/)
end end
def lettings_logs_current?(path) def lettings_logs_current?(path)

Loading…
Cancel
Save