From 591d67605d6b1d457f6968e71a747ec9f73f7727 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Tue, 22 Mar 2022 13:26:18 +0000 Subject: [PATCH] Remove TasklistController as no longer required --- app/frontend/controllers/index.js | 3 --- app/frontend/controllers/tasklist_controller.js | 8 -------- app/views/case_logs/edit.html.erb | 5 +---- 3 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 app/frontend/controllers/tasklist_controller.js diff --git a/app/frontend/controllers/index.js b/app/frontend/controllers/index.js index 743adba1c..ee3be6037 100644 --- a/app/frontend/controllers/index.js +++ b/app/frontend/controllers/index.js @@ -14,6 +14,3 @@ application.register("govukfrontend", GovukfrontendController) import NumericQuestionController from "./numeric_question_controller.js" application.register("numeric-question", NumericQuestionController) - -import TasklistController from "./tasklist_controller.js" -application.register("tasklist", TasklistController) diff --git a/app/frontend/controllers/tasklist_controller.js b/app/frontend/controllers/tasklist_controller.js deleted file mode 100644 index be94797f8..000000000 --- a/app/frontend/controllers/tasklist_controller.js +++ /dev/null @@ -1,8 +0,0 @@ -import { Controller } from "@hotwired/stimulus" - -export default class extends Controller { - addHighlight() { - let section_to_highlight = this.element.dataset.info; - document.getElementById(section_to_highlight).classList.add('tasklist_item_highlight'); - } -} diff --git a/app/views/case_logs/edit.html.erb b/app/views/case_logs/edit.html.erb index 28b2eacd6..fe7e2d661 100644 --- a/app/views/case_logs/edit.html.erb +++ b/app/views/case_logs/edit.html.erb @@ -18,10 +18,7 @@

<% if next_incomplete_section.present? %> - > + Skip to next incomplete section: <%= next_incomplete_section.label %> <% end %>