From 0e6d36e927e8656760d1c18e3399e303ea2c8b41 Mon Sep 17 00:00:00 2001 From: Shujat Khalid Date: Thu, 9 Nov 2023 14:58:27 +0000 Subject: [PATCH] removed mapping for management tasks --- .../application_forms_show_view_object.rb | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/app/view_objects/assessor_interface/application_forms_show_view_object.rb b/app/view_objects/assessor_interface/application_forms_show_view_object.rb index 18f2fe6858..6e655ff560 100644 --- a/app/view_objects/assessor_interface/application_forms_show_view_object.rb +++ b/app/view_objects/assessor_interface/application_forms_show_view_object.rb @@ -59,8 +59,8 @@ def management_tasks assessment, ).rollback? { - title: "Reverse decision", - path: [:rollback, :assessor_interface, application_form, assessment], + name: "Reverse decision", + link: [:rollback, :assessor_interface, application_form, assessment], } end, if AssessorInterface::ApplicationFormPolicy.new( @@ -68,8 +68,8 @@ def management_tasks application_form, ).withdraw? { - title: "Withdraw", - path: [:withdraw, :assessor_interface, application_form], + name: "Withdraw", + link: [:withdraw, :assessor_interface, application_form], } end, ].compact @@ -96,10 +96,7 @@ def management_task_list_section { title: "Management", - items: - management_tasks.map do |task| - { name: task[:title], link: task[:path] } - end, + items: management_tasks, } end