Add home's data to local storage

This commit is contained in:
Peter Maquiran
2021-07-20 19:18:16 +01:00
parent f7f71ea3ef
commit 036487ef3d
6 changed files with 125 additions and 1 deletions
+8 -1
View File
@@ -37,13 +37,20 @@ export class CalendarService {
}
ResetList(eventSource: eventSource[]) {
this._eventSource = eventSource
this._eventSource = eventSource
setTimeout(() => {
this.localstoreService.set(this.keyName, this._eventSource)
}, 10)
}
get eventSource() {
return this._eventSource
}
removeRange(rangeStartDate, rangeEndDate, profile) {
this._eventSource = this._eventSource.filter((e)=> {
if(new Date(rangeStartDate).getTime() <= new Date(e.startTime).getTime() &&