From cd858b0d8ccffe4781b772e8116c1ed804f70b83 Mon Sep 17 00:00:00 2001 From: fabio Date: Sun, 26 Jul 2026 17:56:33 +0200 Subject: [PATCH] feat: add notifications for profile updates, personal data changes, and password updates --- frontend/quasar.config.ts | 2 +- frontend/src/i18n/index.ts | 40 +++++++++++++++++++ frontend/src/pages/ProfilePage.vue | 2 + .../admin/dialogs/CreateProfileDialog.vue | 2 + .../pages/admin/dialogs/EditProfileDialog.vue | 3 ++ .../admin/dialogs/UpdatePasswordDialog.vue | 2 + .../pages/admin/dialogs/UpdateRoleDialog.vue | 2 + .../admin/dialogs/UpdateStatusDialog.vue | 2 + 8 files changed, 54 insertions(+), 1 deletion(-) diff --git a/frontend/quasar.config.ts b/frontend/quasar.config.ts index 88f19d1..6537cd7 100644 --- a/frontend/quasar.config.ts +++ b/frontend/quasar.config.ts @@ -99,7 +99,7 @@ export default defineConfig((/* ctx */) => { // directives: [], // Quasar plugins - plugins: [] + plugins: ['Notify'] }, // animations: 'all', // --- includes all animations diff --git a/frontend/src/i18n/index.ts b/frontend/src/i18n/index.ts index 6be34cf..e8f85e7 100644 --- a/frontend/src/i18n/index.ts +++ b/frontend/src/i18n/index.ts @@ -75,6 +75,14 @@ const messages = { created: 'Created', updated: 'Updated', }, + notifications: { + profileCreated: 'Profile created.', + profileUpdated: 'Profile updated.', + personalDataUpdated: 'Personal data updated.', + roleUpdated: 'Role updated.', + statusUpdated: 'Status updated.', + passwordUpdated: 'Password updated.', + }, }, profile: { title: 'My profile', @@ -196,6 +204,14 @@ const messages = { created: 'Creato', updated: 'Aggiornato', }, + notifications: { + profileCreated: 'Profilo creato.', + profileUpdated: 'Profilo aggiornato.', + personalDataUpdated: 'Dati personali aggiornati.', + roleUpdated: 'Ruolo aggiornato.', + statusUpdated: 'Stato aggiornato.', + passwordUpdated: 'Password aggiornata.', + }, }, profile: { title: 'Il mio profilo', @@ -317,6 +333,14 @@ const messages = { created: 'Créé', updated: 'Mis à jour', }, + notifications: { + profileCreated: 'Profil créé.', + profileUpdated: 'Profil mis à jour.', + personalDataUpdated: 'Données personnelles mises à jour.', + roleUpdated: 'Rôle mis à jour.', + statusUpdated: 'Statut mis à jour.', + passwordUpdated: 'Mot de passe mis à jour.', + }, }, profile: { title: 'Mon profil', @@ -438,6 +462,14 @@ const messages = { created: 'Erstellt', updated: 'Aktualisiert', }, + notifications: { + profileCreated: 'Profil erstellt.', + profileUpdated: 'Profil aktualisiert.', + personalDataUpdated: 'Persönliche Daten aktualisiert.', + roleUpdated: 'Rolle aktualisiert.', + statusUpdated: 'Status aktualisiert.', + passwordUpdated: 'Passwort aktualisiert.', + }, }, profile: { title: 'Mein Profil', @@ -559,6 +591,14 @@ const messages = { created: 'Creado', updated: 'Actualizado', }, + notifications: { + profileCreated: 'Perfil creado.', + profileUpdated: 'Perfil actualizado.', + personalDataUpdated: 'Datos personales actualizados.', + roleUpdated: 'Rol actualizado.', + statusUpdated: 'Estado actualizado.', + passwordUpdated: 'Contraseña actualizada.', + }, }, profile: { title: 'Mi perfil', diff --git a/frontend/src/pages/ProfilePage.vue b/frontend/src/pages/ProfilePage.vue index fd65db0..64e3ea8 100644 --- a/frontend/src/pages/ProfilePage.vue +++ b/frontend/src/pages/ProfilePage.vue @@ -228,6 +228,7 @@