diff --git a/src/main/ts-v7/src/app/account-settings/profil-edition/profil-edition.component.html b/src/main/ts-v7/src/app/account-settings/profil-edition/profil-edition.component.html index 0113bcb..89eb7d1 100644 --- a/src/main/ts-v7/src/app/account-settings/profil-edition/profil-edition.component.html +++ b/src/main/ts-v7/src/app/account-settings/profil-edition/profil-edition.component.html @@ -10,29 +10,29 @@
- +
- +
diff --git a/src/main/ts-v7/src/app/account-settings/profil-edition/profil-edition.component.ts b/src/main/ts-v7/src/app/account-settings/profil-edition/profil-edition.component.ts index 31811c2..608a637 100644 --- a/src/main/ts-v7/src/app/account-settings/profil-edition/profil-edition.component.ts +++ b/src/main/ts-v7/src/app/account-settings/profil-edition/profil-edition.component.ts @@ -69,6 +69,7 @@ export class ProfilEditionComponent implements OnInit { console.log('File ' + result.body + ' completely uploaded!'); this.model.image = result.body as string; this.authService.setAuthenticated(this.model); + this.setMessage('Image de profil modifiée.', false); } this.selectedFiles = undefined; }); diff --git a/src/main/ts-v7/src/app/app.routing.ts b/src/main/ts-v7/src/app/app.routing.ts index 06b7f91..7208af0 100755 --- a/src/main/ts-v7/src/app/app.routing.ts +++ b/src/main/ts-v7/src/app/app.routing.ts @@ -8,7 +8,7 @@ import { DisconnectionComponent } from './disconnection/disconnection.component' import { MyPostsComponent } from './posts/myPosts/my-posts.component'; import { AccountSettingsComponent } from './account-settings/account-settings.component'; import { ChangePasswordComponent } from './account-settings/change-password/change-password.component'; - +import { ProfilEditionComponent } from './account-settings/profil-edition/profil-edition.component'; export const appRoutes: Routes = [ { path: '', redirectTo: '/home', pathMatch: 'full' }, @@ -18,5 +18,6 @@ export const appRoutes: Routes = [ { path: 'myPosts', component: MyPostsComponent, canActivate: [AuthGuard] }, { path: 'accountSettings', component: AccountSettingsComponent, canActivate: [AuthGuard] }, { path: 'changePassword', component: ChangePasswordComponent, canActivate: [AuthGuard] }, + { path: 'profilEdit', component: ProfilEditionComponent, canActivate: [AuthGuard] }, { path: '**', redirectTo: '/home' } ];