fix change order and agenda list

This commit is contained in:
Peter Maquiran
2024-03-18 11:42:36 +01:00
parent a34ef60126
commit 0b876e516b
7 changed files with 28 additions and 12 deletions
+8 -1
View File
@@ -99,7 +99,6 @@ export class ListBoxService {
display(list: CustomCalendarEvent[], selectedDate) {
let days = {};
const year: Year[] = []
@@ -174,6 +173,14 @@ export class ListBoxService {
const EndEvent = this.transForm(cloneEvent, {startMany: false,endMany: true, middle: true})
if(this.CanPush(cloneEvent, selectedDate) && cloneEvent.start.getTime() >= cloneSelectedDate.getTime()) {
days[otherDays].push(EndEvent) ; this.push(EndEvent, year)
} else {
if( cloneEvent.start.getFullYear() == cloneSelectedDate.getFullYear() && cloneEvent.start.getDate() == cloneSelectedDate.getDate() && cloneEvent.start.getMonth() == cloneSelectedDate.getMonth()) {
// console.log("00_00")
days[otherDays].push(EndEvent) ; this.push(EndEvent, year)
} else {
// console.log('0000000000000000000000000',cloneEvent.start.getTime(), cloneSelectedDate.getTime())
// console.log('0000000000000000000000000',cloneEvent.start, cloneSelectedDate)
}
}
}
+1
View File
@@ -391,6 +391,7 @@ export class RoomService {
this.name = ChatMessage.msg
}
this.sortRoomList()
// this.changeDetector()
setTimeout(() => {
done()
+14 -2
View File
@@ -1206,11 +1206,23 @@ export class EventsService {
})
)
} else {
const calendar = this.DetectCalendars(calendarId)
const header = this.makeHeader(calendar)
options = {
headers: header,
params: params
};
return this.http.delete(`${puturl}`, options).pipe(
catchError(err => {
this.offlinemanager.storeRequestData('eventDelete', arrayReq);
throw new Error(err);
})
)
}
throw('header not found')
}