Filter transactions by category (#581)

* Add transaction filtering by category

* Link label to checkbox

* Keep the dropdown open when clicked to allow tab change

* Show the badge with color and name when filter is applied

* Reduce color height
This commit is contained in:
Thibaut Gorioux
2024-04-02 18:17:26 +02:00
committed by GitHub
parent ea3ba4f33a
commit b3c48d13e7
6 changed files with 30 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ class Transaction::Category < ApplicationRecord
]
def self.ransackable_attributes(auth_object = nil)
%w[name]
%w[name id]
end
def self.ransackable_associations(auth_object = nil)