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:
Knee Cola
2025-11-17 18:58:43 +01:00
parent 513e78e8f1
commit 5bbf80c2ae
6 changed files with 34 additions and 30 deletions

View File

@@ -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": {}
}
}