mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Bulk transaction deletion (#845)
* Clean up transaction show view, add delete button * Clean up tailwind global styles, add switch * Bulk deletion controller and tests * Normalize translations * Add bulk deletion button and form
This commit is contained in:
parent
115f792198
commit
d3f9be15f1
8 changed files with 225 additions and 95 deletions
|
@ -1,6 +1,11 @@
|
|||
---
|
||||
en:
|
||||
transactions:
|
||||
bulk_delete:
|
||||
success: "%{count} transactions deleted"
|
||||
bulk_update:
|
||||
failure: Could not update transactions
|
||||
success: "%{count} transactions updated"
|
||||
categories:
|
||||
create:
|
||||
success: New transaction category created successfully
|
||||
|
@ -96,6 +101,17 @@ en:
|
|||
update:
|
||||
success: Merchant updated successfully
|
||||
show:
|
||||
additional: Additional
|
||||
delete: Delete
|
||||
delete_subtitle: This permanently deletes the transaction, affects your historical
|
||||
balances, and cannot be undone.
|
||||
delete_title: Delete transaction
|
||||
description: Description
|
||||
exclude_subtitle: This excludes the transaction from any in-app features or
|
||||
analytics.
|
||||
exclude_title: Exclude transaction
|
||||
overview: Overview
|
||||
select_tags: Select one or more tags
|
||||
settings: Settings
|
||||
update:
|
||||
success: Transaction updated successfully
|
||||
|
|
|
@ -43,6 +43,9 @@ Rails.application.routes.draw do
|
|||
|
||||
resources :transactions do
|
||||
collection do
|
||||
post "bulk_delete"
|
||||
post "bulk_update"
|
||||
|
||||
scope module: :transactions, as: :transaction do
|
||||
resources :rows, only: %i[ show update ]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue