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({ const capturedImage = await Camera.getPhoto({
width: 188, width: 188,
height: 188, height: 188,
quality: 50, quality: 100,
// allowEditing: true, // allowEditing: true,
resultType: CameraResultType.Base64, resultType: CameraResultType.Base64,
source: CameraSource.Camera source: CameraSource.Camera
+1
View File
@@ -422,6 +422,7 @@ export class ProfilePage implements OnInit {
modal.onDidDismiss().then(() => { modal.onDidDismiss().then(() => {
this.isProfileOpen = false; this.isProfileOpen = false;
this.getProfilpicture()
}, (error) => { }, (error) => {
console.log(error) console.log(error)
}) })
+1 -1
View File
@@ -45,7 +45,7 @@
</div> </div>
<div style=" <div *ngIf="SessionStore.user.RoleID !== 100000014" style="
padding-bottom: 10px; padding-bottom: 10px;
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
+9
View File
@@ -487,4 +487,13 @@ export class ProcessesService {
return this.http.get<any>(`${geturl}`, options); 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(() => { modal.onDidDismiss().then(() => {
this.notificationLengthData() this.notificationLengthData()
this.getProfilpicture()
this.showProfileModal = false this.showProfileModal = false
}) })
+6 -6
View File
@@ -1,12 +1,12 @@
export let versionData = { export let versionData = {
"shortSHA": "bf1337f5d", "shortSHA": "95e24aa1e",
"SHA": "bf1337f5dbfbd28acef03ae1e02cf2086c126075", "SHA": "95e24aa1e4897a1845d3721aed464aa741703d78",
"branch": "developer-prod", "branch": "developer-prod",
"lastCommitAuthor": "'Eudes Inácio'", "lastCommitAuthor": "'Eudes Inácio'",
"lastCommitTime": "'Wed Aug 30 11:17:17 2023 +0100'", "lastCommitTime": "'Wed Aug 30 11:20:13 2023 +0100'",
"lastCommitMessage": "PR have the same actions that MD have on events to aprove", "lastCommitMessage": "pull made",
"lastCommitNumber": "5231", "lastCommitNumber": "5236",
"change": "", "change": "",
"changeStatus": "On branch developer-prod\nYour branch and 'origin/developer-prod' have diverged,\nand have 1 and 4 different commits each, respectively.\n (use \"git pull\" to merge the remote branch into yours)\n\nAll conflicts fixed but you are still merging.\n (use \"git commit\" to conclude merge)\n\nChanges to be committed:\n\tmodified: src/app/pages/agenda/agenda.page.html\n\tmodified: src/app/pages/agenda/agenda.page.ts\n\tmodified: src/app/shared/gabinete-digital/all-processes/all-processes.page.scss\n\tmodified: src/app/shared/gabinete-digital/despachos-pr/despachos-pr.page.scss\n\tmodified: src/app/shared/gabinete-digital/despachos/despachos.page.scss\n\tmodified: src/app/shared/gabinete-digital/diplomas/diplomas.page.scss\n\tmodified: src/app/shared/gabinete-digital/generic/task-list/task-list.page.scss\n\tmodified: src/global.scss", "changeStatus": "On branch developer-prod\nYour branch is up to date with 'origin/developer-prod'.\n\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/modals/profile/edit-profile/edit-profile.page.ts\n\tmodified: src/app/modals/profile/profile.page.ts\n\tmodified: src/app/pages/agenda/agenda.page.html\n\tmodified: src/app/services/processes.service.ts\n\tmodified: src/app/shared/header/header.page.ts",
"changeAuthor": "eudes.inacio" "changeAuthor": "eudes.inacio"
} }