mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
set default time
This commit is contained in:
@@ -164,7 +164,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
|
||||
|
||||
setEndDate() {
|
||||
if(!this.postData.EndDate) {
|
||||
this.postData.EndDate = this.postData.StartDate;
|
||||
this.postData.EndDate = this.roundTimeQuarterHourPlus15(this.postData.StartDate);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -463,6 +463,13 @@ export class DocumentSetUpMeetingPage implements OnInit {
|
||||
return date
|
||||
}
|
||||
|
||||
roundTimeQuarterHourPlus15(date:Date) {
|
||||
const _date = new Date(date);
|
||||
const minutes = _date .getMinutes();
|
||||
_date .setMinutes(minutes + 15)
|
||||
return _date
|
||||
}
|
||||
|
||||
checkRoleInArray(str) {
|
||||
return this._eventService.calendarRole.includes(str);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user