Skip to content

Commit

Permalink
Merge pull request #16947 from opf/fix/58361/disable-sort-custom-actions
Browse files Browse the repository at this point in the history
Disable sorting on custom actions table
  • Loading branch information
mrmir authored Oct 15, 2024
2 parents 222a76d + 4c10e32 commit 964a2e5
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 964a2e5

Please sign in to comment.