This commit is contained in:
Peter Maquiran
2023-02-06 17:54:06 +01:00
parent 18b647e702
commit 3fd2803a3b
8 changed files with 21 additions and 19 deletions
@@ -171,7 +171,7 @@ export class EditEventPage implements OnInit {
});
}
roundTimeQuarterHour(timeToReturn?) {
roundTimeQuarterHour(timeToReturn = new Date()) {
let date = timeToReturn || new Date();
const minutes = date.getMinutes();
date.setSeconds(0);
@@ -194,8 +194,8 @@ export class NewEventPage implements OnInit {
this.modalController.dismiss();
}
roundTimeQuarterHour(timeToReturn?) {
let date: any = new Date(timeToReturn) || Date();
roundTimeQuarterHour(timeToReturn = new Date()) {
let date: any = new Date(timeToReturn) || new Date();
const minutes = date.getMinutes();
date.setSeconds(0);
@@ -526,7 +526,7 @@ export class NewEventPage implements OnInit {
this.postEvent.Attendees = data;
}
setIntervenientCC(data){
setIntervenientCC(data) {
this.taskParticipantsCc = [];
this.taskParticipantsCc = data;
}
@@ -561,7 +561,7 @@ export class NewEventPage implements OnInit {
});
}
removeAttachment(index: number){
removeAttachment(index: number) {
this.documents = this.documents.filter( (e, i) => index != i);
@@ -136,7 +136,7 @@ export class BookMeetingModalPage implements OnInit {
this.postData.CalendarName = "Oficial";
this.dateControlStart = new FormControl(moment(this.roundTimeQuarterHour()));
this.dateControlEnd = new FormControl(moment(new Date(this.roundTimeQuarterHour() + 15 * 60000)));
this.dateControlEnd = new FormControl(moment(new Date(this.roundTimeQuarterHour())));
this.postData.Category = 'Reunião'
@@ -498,7 +498,7 @@ export class BookMeetingModalPage implements OnInit {
}
roundTimeQuarterHour(timeToReturn?) {
roundTimeQuarterHour(timeToReturn = new Date()) {
let date = timeToReturn || new Date();
const minutes = date.getMinutes();
date.setSeconds(0);
@@ -157,7 +157,7 @@ export class NewActionPage implements OnInit {
}
roundTimeQuarterHour(timeToReturn?) {
roundTimeQuarterHour(timeToReturn = new Date()) {
let date = timeToReturn || new Date();
const minutes = date.getMinutes();
date.setSeconds(0);