change actions date field

This commit is contained in:
Peter Maquiran
2023-09-22 18:12:48 +01:00
parent 6033ecdfb0
commit c0eee0e2b3
7 changed files with 73 additions and 50 deletions
@@ -99,7 +99,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
CalendarNamesOptions
testeFormDefaul = "Eudes"
environment = environment
constructor(
private modalController: ModalController,
private router:Router,
@@ -122,7 +122,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
this.attachments = [this.document]
}
this.document = []
@@ -163,8 +163,8 @@ export class DocumentSetUpMeetingPage implements OnInit {
this.adding = "intervenient";
this.setDefaultTime()
this.getRecurrenceTypes();
}
ngOnDestroy() {
@@ -249,17 +249,17 @@ export class DocumentSetUpMeetingPage implements OnInit {
this.CalendarNameShow = true
if(this._eventService.calendarNamesType[this.CalendarName]?.['Oficial'] && this._eventService.calendarNamesType[this.CalendarName]?.['Pessoal']) {
this.CalendarNamesOptions = ['Oficial', 'Pessoal']
} else if (this._eventService.calendarNamesType[this.CalendarName]?.['Oficial']) {
this.CalendarNamesOptions = ['Oficial']
this.postData.CalendarName = 'Oficial'
} else if (this._eventService.calendarNamesType[this.CalendarName]?.['Pessoal']) {
this.CalendarNamesOptions = ['Pessoal']
this.postData.CalendarName = 'Pessoal'
} else {
this.CalendarNamesOptions = ['Oficial', 'Pessoal']
}
@@ -364,7 +364,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
this.setIntervenientCC(newAttendeesCC);
}
}, (error) => {
// console.log(error)
console.log(error)
});
await modal.present()
@@ -390,7 +390,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
backdropDismiss: false
});
modal.onDidDismiss().then((data) => {
@@ -423,7 +423,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
select: true
}
});
modal.onDidDismiss().then((res)=> {
if(res){
const data = res.data;
@@ -460,7 +460,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
return '11:11'
}
}
dynamicSetIntervenient({taskParticipants, taskParticipantsCc}) {
this.taskParticipants = taskParticipants;
this.taskParticipantsCc = taskParticipantsCc;
@@ -485,7 +485,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
date.setSeconds(0);
if(minutes % 15 != 0) {
if (minutes > 45) {
date.setMinutes(60)
} else if (minutes > 30) {
@@ -496,7 +496,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
date.setMinutes(15)
}
}
}
return date
}
@@ -505,7 +505,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
const _date = new Date(date);
const minutes = _date .getMinutes();
_date .setMinutes(minutes + 15)
return _date
return _date
}
checkRoleInArray(str) {
@@ -513,4 +513,4 @@ export class DocumentSetUpMeetingPage implements OnInit {
}
}
}