From de1a2fa0bedaec4c5637e05b441cf711988d27ac Mon Sep 17 00:00:00 2001 From: Damien <damien.burel@maarch.org> Date: Mon, 8 Jul 2019 17:06:22 +0200 Subject: [PATCH] FEAT #11183 TIME 0:20 Signatures --- lang/en.json | 1 + lang/fr.json | 1 + src/frontend/app/profile/profile.component.ts | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lang/en.json b/lang/en.json index 8c7c4bfaa0..7237ea5dd6 100755 --- a/lang/en.json +++ b/lang/en.json @@ -63,6 +63,7 @@ "logInOncePasswordChanged" : "You will be asked to log in once the password has been changed.", "maxFileSizeReached" : "Max file size reached (1 MB)", "minLengthChar" : "{{charLength}} minimum character(s) required", + "modificationSaved" : "Modification saved", "myProfil" : "My profile", "newPassword" : "New password", "notAnImage" : "This is not an image", diff --git a/lang/fr.json b/lang/fr.json index efacf6286c..7d3989f94a 100755 --- a/lang/fr.json +++ b/lang/fr.json @@ -63,6 +63,7 @@ "logInOncePasswordChanged" : "Vous serez amené à vous connecter une fois la modification du mot de passe effectuée.", "maxFileSizeReached" : "Taille maximale du fichier atteinte (1 MB)", "minLengthChar" : "{{charLength}} caractère(s) au minimum requis", + "modificationSaved" : "Modification enregistrée", "myProfil" : "Mon profil", "newPassword" : "Nouveau mot de passe", "notAnImage" : "Ceci n'est pas une image", diff --git a/src/frontend/app/profile/profile.component.ts b/src/frontend/app/profile/profile.component.ts index 2e750230d0..b80408431e 100644 --- a/src/frontend/app/profile/profile.component.ts +++ b/src/frontend/app/profile/profile.component.ts @@ -403,7 +403,9 @@ export class ProfileComponent implements OnInit { this.signaturesService.signaturesList[i].substituted = !this.signaturesService.signaturesList[i].substituted; this.http.patch('../rest/users/' + this.authService.user.id + '/signatures/substituted', { 'signatures': this.signaturesService.signaturesList }) - .subscribe(); + .subscribe((data: any) => { + this.notificationService.success('lang.modificationSaved'); + }); } refreshUserList(opened: any) { -- GitLab