diff options
| author | Kamen Mladenov <kamen.d.mladenov@protonmail.com> | 2021-04-08 08:24:34 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-08 08:24:34 +0300 |
| commit | cfa5391e0f887f7da00ddce8d604897ca08b680f (patch) | |
| tree | 5c6aa123de001fda93720e7dd156fe2626305da0 /src/app/components | |
| parent | b9d5225b7e9f820c28690c243b067cfeb5251d74 (diff) | |
| parent | 10a4896a17495548ed3ce6b333939203b698470b (diff) | |
| download | DevHive-Angular-cfa5391e0f887f7da00ddce8d604897ca08b680f.tar DevHive-Angular-cfa5391e0f887f7da00ddce8d604897ca08b680f.tar.gz DevHive-Angular-cfa5391e0f887f7da00ddce8d604897ca08b680f.zip | |
Merge pull request #5 from Team-Kaleidoscope/profile-picture-update
Profile picture request update
Diffstat (limited to 'src/app/components')
| -rw-r--r-- | src/app/components/profile-settings/profile-settings.component.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app/components/profile-settings/profile-settings.component.ts b/src/app/components/profile-settings/profile-settings.component.ts index f329942..3d6e491 100644 --- a/src/app/components/profile-settings/profile-settings.component.ts +++ b/src/app/components/profile-settings/profile-settings.component.ts @@ -14,6 +14,7 @@ import { Technology } from 'src/models/technology.model'; import { TokenService } from 'src/app/services/token.service'; import { Title } from '@angular/platform-browser'; import { AppConstants } from 'src/app/app-constants.module'; +import { ProfilePictureService } from 'src/app/services/profile-picture.service'; @Component({ selector: 'app-profile-settings', @@ -40,7 +41,7 @@ export class ProfileSettingsComponent implements OnInit { public availableTechnologies: Technology[]; public showCurrentPassword = false; - constructor(private _titleService: Title, private _router: Router, private _userService: UserService, private _languageService: LanguageService, private _technologyService: TechnologyService, private _tokenService: TokenService, private _fb: FormBuilder, private _location: Location) { + constructor(private _titleService: Title, private _router: Router, private _userService: UserService, private _profilePictureService: ProfilePictureService, private _languageService: LanguageService, private _technologyService: TechnologyService, private _tokenService: TokenService, private _fb: FormBuilder, private _location: Location) { this._titleService.setTitle(this._title); } @@ -187,7 +188,7 @@ export class ProfileSettingsComponent implements OnInit { return; } - this._userService.putProfilePictureFromSessionStorageRequest(this.newProfilePicture).subscribe({ + this._profilePictureService.putPictureWithSessionStorageRequest(this.newProfilePicture).subscribe({ next: () => { this.reloadPage(); } |
