This commit is contained in:
tiago.kayaya
2021-07-09 15:58:10 +01:00
parent 3021d6c271
commit af4702135d
5 changed files with 6 additions and 4 deletions
@@ -3,7 +3,7 @@ export class EventRecurrence{
Day?: number; Day?: number;
DayOfWeek?:number; DayOfWeek?:number;
Month?: number; Month?: number;
LastOcurrence?: Date; LastOccurrence?: Date;
/* public EventRecurrence(){ /* public EventRecurrence(){
this.Type = "-1"; this.Type = "-1";
@@ -177,7 +177,7 @@
<div class="ion-input-class"> <div class="ion-input-class">
<ion-datetime <ion-datetime
placeholder="Última ocorrência" placeholder="Última ocorrência"
[(ngModel)]="postEvent.EventRecurrence.LastOcurrence" [(ngModel)]="postEvent.EventRecurrence.LastOccurrence"
displayFormat="D MMM YYYY H:mm" displayFormat="D MMM YYYY H:mm"
minuteValues="0,15,30,45" minuteValues="0,15,30,45"
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez" monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"
@@ -98,7 +98,7 @@ export class EditEventPage implements OnInit {
} }
ngOnInit() { ngOnInit() {
this.selectedRecurringType = "-1"; this.selectedRecurringType = this.postEvent.EventRecurrence.Type;
window.onresize = (event) => { window.onresize = (event) => {
// if not mobile remove all component // if not mobile remove all component
@@ -179,7 +179,7 @@
<div class="ion-input-class"> <div class="ion-input-class">
<ion-datetime <ion-datetime
placeholder="Última ocorrência" placeholder="Última ocorrência"
[(ngModel)]="postEvent.EventRecurrence.LastOcurrence" [(ngModel)]="postEvent.EventRecurrence.LastOccurrence"
displayFormat="DD MMM YYYY" displayFormat="DD MMM YYYY"
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez" monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"
min="2021" min="2021"
@@ -86,6 +86,8 @@ export class NewEventPage implements OnInit {
ngOnInit() { ngOnInit() {
this.selectedRecurringType = "-1"; this.selectedRecurringType = "-1";
console.log(this.postEvent);
this.getRecurrenceTypes(); this.getRecurrenceTypes();
/* console.log(this.profile); */ /* console.log(this.profile); */