From 4c10e3243255dba536180bd454ae1a047933be3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 14 Oct 2024 10:35:38 +0200 Subject: [PATCH] Disable sorting on custom actions table https://community.openproject.org/work_packages/58361 --- app/components/custom_actions/table_component.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/components/custom_actions/table_component.rb b/app/components/custom_actions/table_component.rb index 4d5d9bf87097..324f8f7dc576 100644 --- a/app/components/custom_actions/table_component.rb +++ b/app/components/custom_actions/table_component.rb @@ -30,9 +30,7 @@ module CustomActions class TableComponent < ::TableComponent - columns :name, - :description, - :sort + columns :name, :description, :sort def headers [ @@ -42,6 +40,10 @@ def headers ] end + def sortable? + false + end + def inline_create_link link_to new_custom_action_path, aria: { label: t("custom_actions.new") },