This commit is contained in:
tiago.kayaya
2021-09-15 16:20:59 +01:00
parent 8f52a10ec9
commit bc1cf6ef73
6 changed files with 16 additions and 8 deletions
@@ -335,9 +335,6 @@ export class EditEventPage implements OnInit {
this.loadedEventAttachments[index]['remove'] = true
}
this.attachmentsService.deleteEventAttachmentById(attachmentID).subscribe(res => {
console.log(res);
});
}
@@ -3,6 +3,11 @@
</ion-header>
<ion-content class="main-content-l height-100 white ">
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
<ion-refresher-content>
</ion-refresher-content>
</ion-refresher>
<div class="main-content d-flex height-100" [className]="isModal ? '_main-content d-flex height-100 ma-0 px-20 pt-30 pb-20 background-white' : 'main-content d-flex height-100'">
<div class="content d-flex flex-column width-100">
@@ -122,6 +122,11 @@ export class ViewEventPage implements OnInit {
}
doRefresh(ev){
this.loadEvent();
ev.target.complete();
}
loadEvent() {
const loader = this.toastService.loading();
this.eventsService.getEvent(this.eventId).subscribe(res => {
@@ -14,6 +14,7 @@
<ion-content>
<div class="main-content">
<div class="ion-item-container" [class.input-error]="Form?.get('Subject')?.invalid && validateFrom ">
<ion-input placeholder="Assunto*" [(ngModel)]="postEvent.Subject"></ion-input>
</div>
@@ -371,7 +371,6 @@ export class EditEventPage implements OnInit {
deleteAttachment(attachmentID: string, index) {
const id: any = this.loadedEventAttachments[index].Id
if(id == 'add') {
@@ -380,10 +379,6 @@ export class EditEventPage implements OnInit {
this.loadedEventAttachments[index]['remove'] = true
}
this.attachmentsService.deleteEventAttachmentById(attachmentID).subscribe(res => {
console.log(res);
});
}
async getDoc() {
@@ -63,6 +63,11 @@ export class ViewEventPage implements OnInit {
//this.getAttachments();
}
doRefresh(ev){
this.loadEvent();
ev.target.complete();
}
ngOnChanges(changes: any): void {
this.loadedAttachments = null;
this.loadEvent();