Website Summary Files Commits Branches @commit @diff @stats
path: root / src / app / components
diff options
context:
space:
mode:
Commitcfa5391e0f887f7da00ddce8d604897ca08b680f (patch)
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
Files5c6aa123de001fda93720e7dd156fe2626305da0 /src/app/components
DevHive-Angular-cfa5391e0f887f7da00ddce8d604897ca08b680f.tar
DevHive-Angular-cfa5391e0f887f7da00ddce8d604897ca08b680f.tar.gz
DevHive-Angular-cfa5391e0f887f7da00ddce8d604897ca08b680f.zip
Parentb9d5225b7e9f820c28690c243b067cfeb5251d74 (diff)
Parent10a4896a17495548ed3ce6b333939203b698470b (diff)
Merge pull request #5 from Team-Kaleidoscope/profile-picture-update
Profile picture request update
1 files changed, 3 insertions, 2 deletions
-rw-r--r--src/app/components/profile-settings/profile-settings.component.ts5
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();
}