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;
DayOfWeek?:number;
Month?: number;
LastOcurrence?: Date;
LastOccurrence?: Date;
/* public EventRecurrence(){
this.Type = "-1";
@@ -177,7 +177,7 @@
<div class="ion-input-class">
<ion-datetime
placeholder="Última ocorrência"
[(ngModel)]="postEvent.EventRecurrence.LastOcurrence"
[(ngModel)]="postEvent.EventRecurrence.LastOccurrence"
displayFormat="D MMM YYYY H:mm"
minuteValues="0,15,30,45"
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"
@@ -98,7 +98,7 @@ export class EditEventPage implements OnInit {
}
ngOnInit() {
this.selectedRecurringType = "-1";
this.selectedRecurringType = this.postEvent.EventRecurrence.Type;
window.onresize = (event) => {
// if not mobile remove all component
@@ -179,7 +179,7 @@
<div class="ion-input-class">
<ion-datetime
placeholder="Última ocorrência"
[(ngModel)]="postEvent.EventRecurrence.LastOcurrence"
[(ngModel)]="postEvent.EventRecurrence.LastOccurrence"
displayFormat="DD MMM YYYY"
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"
min="2021"
@@ -86,6 +86,8 @@ export class NewEventPage implements OnInit {
ngOnInit() {
this.selectedRecurringType = "-1";
console.log(this.postEvent);
this.getRecurrenceTypes();
/* console.log(this.profile); */