This commit is contained in:
tiago.kayaya
2021-09-03 16:39:36 +01:00
13 changed files with 42 additions and 19 deletions
+28
View File
@@ -191,6 +191,9 @@ export class AgendaPage implements OnInit {
}, 1000)
window['year'] = this.changeYear
}
ngOnInit() {
@@ -738,6 +741,31 @@ export class AgendaPage implements OnInit {
}
changeYear = (year) => {
const a = this.calendar.currentDate
this.calendar.currentDate = new Date(`${year}-${a.getMonth()}-${a.getDay()}`);
try {
this.myCal.update();
this.myCal.loadEvents();
} catch(e) {}
this.updateEventListBox()
}
changeMonth = (month) => {
const a = this.calendar.currentDate
this.calendar.currentDate = new Date(`${a.getFullYear()}-${month}-${a.getDay()}`);
try {
this.myCal.update();
this.myCal.loadEvents();
} catch(e) {}
this.updateEventListBox()
}
get viewEventMonth () {
return this.viewDate.getMonth()
@@ -40,7 +40,6 @@
</ion-item>
</div>
<div *ngIf="cc!='' && cc!=' ' ">
.. {{ cc | json }} ..
<h5 *ngIf="cc.length > 0">Com conhecimento</h5>
<ion-item *ngIf="cc.length > 0" class="ion-no-margin ion-no-padding">