Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mbeard/APPEALS-36175 #20285

Merged
merged 13 commits into from
Dec 22, 2023
Merged
12 changes: 12 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ def queue_application_url
}
end

def case_distribution_url
{
title: "Case Distribution Controls",
link: "/case-distribution-controls",
sort_order: 6
}
end

def hearing_application_url
{
title: "Hearings",
Expand Down Expand Up @@ -214,6 +222,10 @@ def dropdown_urls
urls = defult_menu_items
urls.concat(admin_menu_items)

if current_user.present? && current_user&.organizations && current_user&.organizations&.any?(&:users_can_view_levers?)
urls << case_distribution_url
end

if current_user.present?
urls.append(title: "Sign Out", link: url_for(controller: "/sessions", action: "destroy"), border: true)
if ApplicationController.dependencies_faked?
Expand Down
4 changes: 4 additions & 0 deletions app/views/case_distribution_levers/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<% content_for :full_page_content do %>
<%= react_component("CaseflowDistribution", props: {
userDisplayName: current_user.display_name,
dropdownUrls: dropdown_urls,
applicationUrls: application_urls,
feedbackUrl: feedback_url,
acd_levers: @acd_levers,
acd_history: @acd_history,
user_is_an_acd_admin: @user_is_an_acd_admin
Expand Down
Loading