tech(clean): remove Column classname: attribute

Co-authored-by: mfo <mfo@users.noreply.github.com>
This commit is contained in:
simon lehericey 2024-10-09 09:51:47 +02:00
parent 30fcb75da4
commit 3677f3b2d3
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
6 changed files with 50 additions and 45 deletions

View file

@ -9,6 +9,12 @@ class Instructeurs::ColumnTableHeaderComponent < ApplicationComponent
private
def classname(column)
return 'status-col' if column.dossier_state?
return 'number-col' if column.type == :number
return 'sva-col' if column.column == 'sva_svr_decision_on'
end
def update_sort_path(column)
id = column.id
order = opposite_order_for(column)