Implement redirect with toast notification on profile save
- Add gotoHomeWithMessage function to navigationActions - Redirect to home page after successful profile save - Display success message in toast notification instead of in-form - Check for profileSaved URL parameter on home page mount - Clean up URL parameter after showing toast - Move success message translation to home-page section - Remove unused success state and message from AccountForm - Remove useEffect import from AccountForm User experience: After saving profile, users are redirected to the familiar home screen and see a toast notification confirming the save. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -73,7 +73,8 @@
|
||||
"table-header-barcode": "2D Barkod",
|
||||
"empty-state-title": "Nema Podataka o Barkodovima",
|
||||
"empty-state-message": "Nema računa s 2D barkodovima za {yearMonth}"
|
||||
}
|
||||
},
|
||||
"profile-saved-message": "Profil uspješno ažuriran"
|
||||
},
|
||||
"bill-delete-form": {
|
||||
"text": "Molim potvrdi brisanje računa \"<strong>{bill_name}</strong>\" koji pripada nekretnini \"<strong>{location_name}</strong>\".",
|
||||
@@ -142,7 +143,6 @@
|
||||
"iban-placeholder": "Unesite svoj IBAN",
|
||||
"save-button": "Spremi",
|
||||
"cancel-button": "Odbaci",
|
||||
"success-message": "Profil uspješno ažuriran",
|
||||
"validation": {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user