This commit is contained in:
Tiago Kayaya
2020-09-01 17:13:37 +01:00
parent 58e1d9a7dc
commit c9838bf103
2 changed files with 20 additions and 12 deletions
@@ -50,10 +50,6 @@
displayFormat="D MMM YYYY H:mm"
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"></ion-datetime>
</ion-item>
<!-- <ion-item>
<ion-label position="stacked">Data Início: </ion-label>
<ion-input [(ngModel)]='loadedEvent.StartDate'></ion-input>
</ion-item> -->
<ion-item>
<ion-label position="stacked">Data Fim</ion-label>
<ion-datetime value="{{loadedEvent.EndDate}}" [(ngModel)]="loadedEvent.EndDate" min="2020" max="2100"
@@ -86,12 +82,10 @@
</ion-card-content>
</ion-card> -->
<!-- </div> -->
<div class="div-attach" >
<ion-item>
<ion-buttons slot="end" (click)="openAttendees()">
<ion-icon name="eye" slot="start" ></ion-icon>
<ion-icon name="people" slot="start" ></ion-icon>
<ion-label>Ver mais</ion-label>
</ion-buttons>
<ion-label class="attach-label">Intervenientes</ion-label>
@@ -101,20 +95,26 @@
<ion-item class="attendees" lines="none" *ngFor="let attendee of loadedEvent.Attendees.slice(0, 2)">
<ion-icon class="attendees-icon" name="person" slot="start"></ion-icon>
<ion-label color="secondary" class="attendees-list">{{attendee.Name}}</ion-label>
<!-- <ion-icon name="trash" slot="end"></ion-icon> -->
</ion-item>
</ion-list>
<!-- <ion-button (click)="openAttendees()">Ver mais</ion-button> -->
</div>
<div class="div-attach">
<ion-item>
<ion-icon (click)="showAlert()" name="add" slot="end"></ion-icon>
<ion-buttons slot="end" (click)="showAlert()">
<ion-icon name="documents" slot="start"></ion-icon>
<ion-label>Ver mais</ion-label>
</ion-buttons>
<ion-label class="attach-label">Anexos</ion-label>
</ion-item>
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
<ion-list *ngIf="loadedEvent.HasAttachments">
<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>
<ion-item lines="none" *ngFor="let att of loadedEventAttachments.slice(0, 2)">
<ion-icon name="attach" slot="start"></ion-icon>
<ion-label color="secondary">
@@ -176,4 +176,12 @@ export class EventDetailPage implements OnInit {
{
//this.back();
}
doRefresh(event){
/* this.RefreshEvents(); */
event.target.complete();
setTimeout(() => {
event.target.complete();
}, 2000);
}
}