fix upload picture

This commit is contained in:
Peter Maquiran
2024-09-20 11:45:11 +01:00
parent 9da65a1e7b
commit d8eb3ddbd6
16 changed files with 356 additions and 130 deletions
+17 -3
View File
@@ -75,14 +75,25 @@ export class EventsService {
private changeProfileService: ChangeProfileService,
private offlinemanager: OfflineManagerService) {
this.setHeader()
this.changeProfileService.registerCallback(() => {
try {
this.setHeader()
})
} catch (e) {
console.log(e)
}
this.changeProfileService.registerCallback(() => {
try {
this.setHeader()
} catch (e) {
console.log(e)
}
})
}
async setHeader () {
try {
this.headers = new HttpHeaders();;
this.headersMdOficial = new HttpHeaders();;
@@ -380,6 +391,9 @@ export class EventsService {
this.onLoadCalendars.forEach(e=> e());
this.loadCalendars = true
} catch (err) {
console.log(err)
}
}