improve profile reactiveness and action page performance

This commit is contained in:
Peter Maquiran
2024-07-24 13:37:02 +01:00
parent 717968ac52
commit 46bb078dd2
45 changed files with 543 additions and 247 deletions
-2
View File
@@ -782,7 +782,6 @@ export class AgendaPage implements OnInit {
}
tracing.setAttribute('outcome', 'failed')
tracing.bugFlag()
load++
if (load == (selectedCalendarIds).length) {
@@ -801,7 +800,6 @@ export class AgendaPage implements OnInit {
tracing.setAttribute('outcome', 'failed')
tracing.setAttribute('error', 'selectedCalendar.wxUserId')
this.toastService._badRequest('Pedimos desculpa mas não foi possível executar a acção. Por favor, contacte o apoio técnico. #2')
tracing.bugFlag()
}
tracing.addEvent('load range end')
@@ -177,7 +177,6 @@ export class ViewEventPage implements OnInit {
tracing.setAttribute('outcome', 'failed')
tracing.bugFlag()
// this.toastService.badRequest('Este evento já não existe na sua agenda')
this.RouteService.goBack();
@@ -125,13 +125,11 @@ export class ApproveEventPage implements OnInit {
}
tracing.setAttribute('outcome', 'failed')
tracing.bugFlag()
this.httpErrorHandle.httpStatusHandle(res.error)
} else if(!isHttpError(res.error)) {
tracing.setAttribute('outcome', 'failed')
tracing.bugFlag()
this.toastService._badRequest('Pedimos desculpa mas não foi possível executar a acção. Por favor, contacte o apoio técnico. #12')
}
@@ -222,7 +222,7 @@ export class EventListPage implements OnInit {
} else {
tracing.setAttribute('outcome', 'failed')
tracing.bugFlag()
if(!isHttpError(allEvents.error)) {
this.toastService._badRequest('Pedimos desculpa mas não foi possível executar a acção. Por favor, contacte o apoio técnico. #4')
}
@@ -395,7 +395,6 @@ export class BookMeetingModalPage implements OnInit {
if(!isHttpError(value.error)) {
this.toastService._badRequest('Pedimos desculpa mas não foi possível executar a acção. Por favor, contacte o apoio técnico. #1')
console.log(value.error)
tracing.bugFlag()
} else {
this.httpErroHandle.httpStatusHandle(value.error.status)
}
@@ -409,7 +408,6 @@ export class BookMeetingModalPage implements OnInit {
tracing.setAttribute('outcome', 'failed')
tracing.setAttribute('no', 'this.selectedUserCalendar')
tracing.bugFlag()
}
if (this.task.FsId == '8') {
@@ -67,7 +67,7 @@
<p>mais {{ PublicationFromMvService.form.Files.length - displayLimit }}</p>
</ion-thumbnail>
<ion-label class="pl-10">
<p>{{capturedImageTitle}}</p>
<!-- <p>{{capturedImageTitle}}</p> -->
<p hidden>size</p>
</ion-label>
</div>
@@ -222,7 +222,7 @@ export class NewPublicationPage implements OnInit {
source: CameraSource.Camera
});
this.capturedImage = 'data:image/jpeg;base64,' + capturedImage.base64String;
this.capturedImageTitle = 'foto';
this.capturedImageTitle = '';
this.showCroppModal();
}
@@ -22,9 +22,9 @@
</div>
</div>
<div class="post-item overflow-y-auto">
<div class="post-item overflow-y-auto height-100 ">
<div style="width: 100%; height: 395px;">
<div style="width: 100%;">
<app-swiper
[publicationList]=publication
></app-swiper>
@@ -52,7 +52,6 @@ ion-toolbar {
.div-title {
/* padding: 0!important; */
float: left;
margin-top: 100px;
}
.post-img {
@@ -95,4 +94,4 @@ ion-toolbar {
.font-14-rem {
font-size: rem(14) !important;
}
}
@@ -23,6 +23,8 @@ import { PublicationHolderService } from 'src/app/services/publication/publicati
})
export class PublicationDetailPage implements OnInit {
@ViewChild('videoPlayer', { static: true }) videoPlayer: ElementRef;
@ViewChild('ScrollContainer', { static: true }) ScrollContainer: ElementRef;
showLoader: boolean;
DocumentId: string;
folderId: string;
@@ -82,8 +84,6 @@ export class PublicationDetailPage implements OnInit {
FileExtension: '',
};
window['publicationEdit'] = () => {
if(this.isComponentIsAlive == true) {
this.getPublicationDetail()
@@ -92,9 +92,10 @@ export class PublicationDetailPage implements OnInit {
}
OnDestroy() {
ngOnDestroy() {
this.isComponentIsAlive = false
}
doRefresh(event) {
this.getPublicationDetail();
@@ -43,7 +43,6 @@
<ion-card *ngFor="let publication of publicationFolderService.publicationList[folderId] let i = index">
<ion-card-content>
<div style="width: 100%; height: 395px;">
<app-swiper
[publicationList]=publication