modules/openid_connect/app/components/openid_connect/providers/table_component.rb
module OpenIDConnect
module Providers
class TableComponent < ::TableComponent
columns :name
def initial_sort
%i[id asc]
end
def sortable?
false
end
def empty_row_message
I18n.t "openid_connect.providers.no_results_table"
end
def headers
[
["name", { caption: I18n.t("attributes.name") }]
]
end
end
end
end