update profile picture after close modal

This commit is contained in:
Eudes Inácio
2023-08-30 14:02:14 +01:00
parent 95e24aa1e4
commit 377ba3fda3
6 changed files with 19 additions and 8 deletions
@@ -148,7 +148,7 @@ export class EditProfilePage implements OnInit {
const capturedImage = await Camera.getPhoto({
width: 188,
height: 188,
quality: 50,
quality: 100,
// allowEditing: true,
resultType: CameraResultType.Base64,
source: CameraSource.Camera
+1
View File
@@ -422,6 +422,7 @@ export class ProfilePage implements OnInit {
modal.onDidDismiss().then(() => {
this.isProfileOpen = false;
this.getProfilpicture()
}, (error) => {
console.log(error)
})
+1 -1
View File
@@ -45,7 +45,7 @@
</div>
<div style="
<div *ngIf="SessionStore.user.RoleID !== 100000014" style="
padding-bottom: 10px;
padding-left: 10px;
padding-right: 10px;
+9
View File
@@ -487,4 +487,13 @@ export class ProcessesService {
return this.http.get<any>(`${geturl}`, options);
}
uploadFiles(file) {
const geturl = environment.apiURL + 'Tasks/AttachDocImage';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`,file, options);
}
}
+1
View File
@@ -223,6 +223,7 @@ export class HeaderPage implements OnInit {
modal.onDidDismiss().then(() => {
this.notificationLengthData()
this.getProfilpicture()
this.showProfileModal = false
})