mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
save
This commit is contained in:
@@ -335,9 +335,6 @@ export class EditEventPage implements OnInit {
|
|||||||
this.loadedEventAttachments[index]['remove'] = true
|
this.loadedEventAttachments[index]['remove'] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
this.attachmentsService.deleteEventAttachmentById(attachmentID).subscribe(res => {
|
|
||||||
console.log(res);
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,11 @@
|
|||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
<ion-content class="main-content-l height-100 white ">
|
<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="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">
|
<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() {
|
loadEvent() {
|
||||||
const loader = this.toastService.loading();
|
const loader = this.toastService.loading();
|
||||||
this.eventsService.getEvent(this.eventId).subscribe(res => {
|
this.eventsService.getEvent(this.eventId).subscribe(res => {
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
<ion-content>
|
<ion-content>
|
||||||
<div class="main-content">
|
<div class="main-content">
|
||||||
|
|
||||||
|
|
||||||
<div class="ion-item-container" [class.input-error]="Form?.get('Subject')?.invalid && validateFrom ">
|
<div class="ion-item-container" [class.input-error]="Form?.get('Subject')?.invalid && validateFrom ">
|
||||||
<ion-input placeholder="Assunto*" [(ngModel)]="postEvent.Subject"></ion-input>
|
<ion-input placeholder="Assunto*" [(ngModel)]="postEvent.Subject"></ion-input>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -371,7 +371,6 @@ export class EditEventPage implements OnInit {
|
|||||||
|
|
||||||
deleteAttachment(attachmentID: string, index) {
|
deleteAttachment(attachmentID: string, index) {
|
||||||
|
|
||||||
|
|
||||||
const id: any = this.loadedEventAttachments[index].Id
|
const id: any = this.loadedEventAttachments[index].Id
|
||||||
|
|
||||||
if(id == 'add') {
|
if(id == 'add') {
|
||||||
@@ -380,10 +379,6 @@ export class EditEventPage implements OnInit {
|
|||||||
this.loadedEventAttachments[index]['remove'] = true
|
this.loadedEventAttachments[index]['remove'] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
this.attachmentsService.deleteEventAttachmentById(attachmentID).subscribe(res => {
|
|
||||||
console.log(res);
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async getDoc() {
|
async getDoc() {
|
||||||
|
|||||||
@@ -63,6 +63,11 @@ export class ViewEventPage implements OnInit {
|
|||||||
//this.getAttachments();
|
//this.getAttachments();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
doRefresh(ev){
|
||||||
|
this.loadEvent();
|
||||||
|
ev.target.complete();
|
||||||
|
}
|
||||||
|
|
||||||
ngOnChanges(changes: any): void {
|
ngOnChanges(changes: any): void {
|
||||||
this.loadedAttachments = null;
|
this.loadedAttachments = null;
|
||||||
this.loadEvent();
|
this.loadEvent();
|
||||||
|
|||||||
Reference in New Issue
Block a user