Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Disable sorting on custom actions table

Oliver Günther4c10e3243255
diff --git a/app/components/custom_actions/table_component.rb b/app/components/custom_actions/table_component.rb
index 4d5d9bf8709..324f8f7dc57 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 @@ module CustomActions
]
end
+ def sortable?
+ false
+ end
+
def inline_create_link
link_to new_custom_action_path,
aria: { label: t("custom_actions.new") },