1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-02 20:15:22 +02:00

Move category dropdown menu content into a turbo frame (#782)

* Move category dropdown menu content into a turbo frame

* Fix lint

* Review fixes

* Cleanup

* Review fixes

* Final cleanup

* Revert schema change
This commit is contained in:
Jakub Kottnauer 2024-05-22 12:31:25 +02:00 committed by GitHub
parent 32748b0632
commit ac27a1c87f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 86 additions and 51 deletions

View file

@ -16,10 +16,15 @@ en:
category will be uncategorized. Instead of leaving them uncategorized,
you can also assign a new category below.
replacement_category_prompt: Select category
dropdown:
dropdowns:
row:
delete: Delete category
edit: Edit category
show:
add_new: Add new
clear: Clear
no_categories: No categories found
search_placeholder: Search
edit:
edit: Edit category
form:
@ -29,8 +34,7 @@ en:
categories: Categories
new: New
menu:
add_new: Add new
clear: Clear
loading: Loading...
new:
new_category: New category
row:

View file

@ -38,16 +38,19 @@ Rails.application.routes.draw do
end
resources :transactions do
match "search" => "transactions#search", on: :collection, via: %i[ get post ], as: :search
collection do
scope module: :transactions do
resources :categories, as: :transaction_categories do
match "search" => "transactions#search", via: %i[ get post ]
scope module: :transactions, as: :transaction do
resources :categories do
resources :deletions, only: %i[ new create ], module: :categories
collection do
resource :dropdown, only: :show, module: :categories, as: :category_dropdown
end
end
resources :rules, only: %i[ index ], as: :transaction_rules
resources :merchants, only: %i[ index new create edit update destroy ], as: :transaction_merchants
resources :rules, only: %i[ index ]
resources :merchants, only: %i[ index new create edit update destroy ]
end
end
end