Improve pin logo

This commit is contained in:
Peter Maquiran
2021-11-15 15:29:43 +01:00
parent 0e1e1a4aae
commit 256dd97f1a
6 changed files with 24 additions and 13 deletions
+12 -5
View File
@@ -94,12 +94,12 @@ export class ListBoxService {
if (diffDays >= 1) {
const StartEvent = this.transForm(event, {startMany: true,endMany: false, middle: false, profile})
if(this.push(event, selectedDate)) days[day].push(StartEvent)
if(this.push(event, selectedDate)) days[day].push(StartEvent)
let i = 1;
// create event between date
// create event between date
while (startDate.getFullYear() != endDate.getFullYear() ||
startDate.getMonth() != endDate.getMonth() ||
startDate.getDate() != endDate.getDate()) {
@@ -132,12 +132,15 @@ export class ListBoxService {
}
} else {
if(this.push(event, selectedDate)) days[day].push(event)
}
} else {
if(this.push(event, selectedDate)) days[day].push(event)
}
}
}
if(this.push(event, selectedDate)) days[day].push(event)
@@ -158,8 +161,12 @@ export class ListBoxService {
push(event: any, selectedDate: Date) {
console.log(new Date(event.start).getDate(), selectedDate.getDate(), new Date(event.start).getDate() >= selectedDate.getDate())
return new Date(event.start).getMonth() == selectedDate.getMonth() &&
new Date(event.start).getFullYear() == selectedDate.getFullYear()
new Date(event.start).getFullYear() == selectedDate.getFullYear() &&
new Date(event.start).getDate() >= selectedDate.getDate()
}
encapsulation(eventsList:EventListStore[], profile): CustomCalendarEvent[] {