Extend toast notifications to all forms (bills and locations)
- Update billActions to redirect with toast messages - billSaved: when bill is created or updated - billDeleted: when bill is deleted - Update locationActions to redirect with toast messages - locationSaved: when location is created or updated - locationDeleted: when location is deleted - Enhance MonthLocationList to check for all toast parameters - Consolidated success message handling for all operations - Clean up all URL parameters after showing toast - Add translations for all success messages (EN and HR) - Bill saved/deleted messages - Location saved/deleted messages User experience: All forms now redirect to home with toast notifications, providing consistent feedback across the app. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -74,7 +74,11 @@
|
||||
"empty-state-title": "No Barcode Data Found",
|
||||
"empty-state-message": "No bills with 2D barcodes found for {yearMonth}"
|
||||
},
|
||||
"profile-saved-message": "Profile updated successfully"
|
||||
"profile-saved-message": "Profile updated successfully",
|
||||
"bill-saved-message": "Bill saved successfully",
|
||||
"bill-deleted-message": "Bill deleted successfully",
|
||||
"location-saved-message": "Location saved successfully",
|
||||
"location-deleted-message": "Location deleted successfully"
|
||||
},
|
||||
"bill-delete-form": {
|
||||
"text": "Please confirm deletion of bill \"<strong>{bill_name}</strong>\" at \"<strong>{location_name}</strong>\".",
|
||||
|
||||
Reference in New Issue
Block a user