This commit is contained in:
tiago.kayaya
2021-08-18 09:23:53 +01:00
parent 719848ec16
commit ab30b20a79
12 changed files with 100 additions and 19 deletions
@@ -227,12 +227,11 @@
<div class="list-people">
<ion-item lines="none">
<ion-list>
<ion-label class="list-people-title">Com conhecimento</ion-label>
<ion-label *ngIf="taskParticipantsCc?.length < 1" class="list-people-title">Com conhecimento</ion-label>
<div class="list-people">
<ion-item lines="none">
<ion-list>
<ion-label *ngIf="!taskParticipants" class="list-people-title">Adicionar intervenientes</ion-label>
<ion-label *ngFor="let participant of taskParticipants">{{participant.Name}}</ion-label>
<ion-label *ngFor="let participant of taskParticipantsCc">{{participant.Name}}</ion-label>
</ion-list>
</ion-item>
</div>
@@ -59,6 +59,7 @@ export class NewEventPage implements OnInit {
documents:SearchDocument[] = [];
loggeduser: User;
members:any;
constructor(
private modalController: ModalController,
@@ -78,7 +79,9 @@ export class NewEventPage implements OnInit {
this.selectedSegment = this.navParams.get('segment');
this.selectedDate = this.navParams.get('eventSelectedDate');
this.taskParticipants = this.navParams.get('attendees');
console.log(this.taskParticipants);
this.postEvent.StartDate = new Date()
this.postEvent.EndDate = (new Date(new Date().getTime() + 15 * 60000))
@@ -232,13 +235,15 @@ export class NewEventPage implements OnInit {
this.postEvent.EventRecurrence.Type = this.selectedRecurringType;
}
this.postEvent.Attendees = this.taskParticipants.concat(this.taskParticipantsCc);
let eventId: any;
const loader = this.toastService.loading()
try {
if(this.loggeduser.Profile == 'MDGPR') {
console.log(this.loggeduser.Profile);