Skip to content

Commit

Permalink
Disable sorting on custom actions table
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Oct 14, 2024
1 parent f2f94d6 commit 4c10e32
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/components/custom_actions/table_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@

module CustomActions
class TableComponent < ::TableComponent
columns :name,
:description,
:sort
columns :name, :description, :sort

def headers
[
Expand All @@ -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") },
Expand Down

0 comments on commit 4c10e32

Please sign in to comment.