Improve attendies

This commit is contained in:
Peter Maquiran
2021-07-12 16:05:05 +01:00
parent 6ac7a4a715
commit 7b22c9d532
8 changed files with 24 additions and 7 deletions
+1 -2
View File
@@ -2,7 +2,7 @@
## Requirements
[node >= 14](https://nodejs.org/dist/v14.17.3/node-v14.17.3-x64.msi)
[node >= 14](https://nodejs.org/download/release/v14.15.0/node-v14.15.0-x86.msi)
## Installation
@@ -22,7 +22,6 @@ npm install -g @angular/cli
ionic serve
```
## build for production and launch server
```bash
@@ -176,6 +176,7 @@
(setIntervenient)="setIntervenient($event)"
(setIntervenientCC)="setIntervenientCC($event)"
(setContact)="setContact($event)"
(dynamicSetIntervenient)="dynamicSetIntervenient($event)"
></app-attendee-modal>
</div>
@@ -647,6 +647,12 @@ export class CreateProcessPage implements OnInit {
}
dynamicSetIntervenient({taskParticipants, taskParticipantsCc}){
this.taskParticipants = taskParticipants;
this.taskParticipantsCc = taskParticipantsCc;
}
async setIntervenient(data) {
this.taskParticipants = data;
}
@@ -21,6 +21,8 @@ export class EditEventPage implements OnInit {
Form: FormGroup;
validateFrom = false
public endMinDate = new Date(new Date().getTime() + 15 * 60000);
public minDate = new Date().toISOString().slice(0,10)
postEvent: Event;
isRecurring:string;
@@ -32,7 +34,6 @@ export class EditEventPage implements OnInit {
eventAttendees: EventPerson[];
selectedSegment: string;
selectedDate: Date;
minDate: string;
initCalendarName: string;
caller:string;
recurringTypes: any;
@@ -45,6 +46,8 @@ export class EditEventPage implements OnInit {
adding: "intervenient" | "CC" = "intervenient";
showAttendees = false;
constructor(
@@ -165,6 +168,7 @@ export class EditEventPage implements OnInit {
IsRecurring: new FormControl(this.postEvent.IsRecurring, [
Validators.required
]),
// participantes: new FormControl(this.taskParticipantsCc.concat(this.taskParticipants), [
// Validators.required
// ]),
@@ -112,7 +112,7 @@
<div class="ion-icon-class">
<ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon>
</div>
<div class="ion-input-class flex-grow-1">
<div class="ion-input-class flex-grow-1" [class.input-error]="Form?.get('Date')?.invalid && validateFrom ">
<mat-form-field appearance="none" floatLabel="never" floatLabel="never" class="date-hour-picker">
<input matInput [ngxMatDatetimePicker]="picker1"
@@ -127,6 +127,7 @@
[showSeconds]="showSeconds"
[stepHour]="stepHour" [stepMinute]="stepMinute"
[stepSecond]="stepSecond"
[min]="endMinDate"
[touchUi]="touchUi">
</ngx-mat-datetime-picker>
</mat-form-field>
@@ -140,7 +141,7 @@
<div class="ion-icon-class">
<ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon>
</div>
<div class="ion-input-class flex-grow-1">
<div class="ion-input-class flex-grow-1" [class.input-error]="Form?.get('Date')?.invalid && validateFrom ">
<mat-form-field appearance="none" floatLabel="never" floatLabel="never" class="date-hour-picker">
<input matInput [ngxMatDatetimePicker]="fim"
@@ -183,6 +183,9 @@ export class EditEventPage implements OnInit {
participantes: new FormControl(this.taskParticipants, [
Validators.required
]),
Date: new FormControl(this.dateControlStart.toLocaleString() > this.dateControlEnd.toLocaleString()? 'ok': null,[
Validators.required
]),
})
}
@@ -254,6 +254,9 @@ export class NewEventPage implements OnInit {
participantes: new FormControl(this.taskParticipants, [
Validators.required
]),
Date: new FormControl(this.dateControlStart.toLocaleString() > this.dateControlEnd.toLocaleString()? 'ok': null,[
Validators.required
]),
})
}