remove all service validation

This commit is contained in:
Peter Maquiran
2024-10-17 22:31:03 +01:00
parent 2e04ef0b20
commit ddc6ef0265
6 changed files with 13 additions and 43 deletions
-3
View File
@@ -1,3 +0,0 @@
export class DispatchController {
}
+6 -8
View File
@@ -674,10 +674,6 @@ export class AgendaPage implements OnInit {
loadRangeEvents(startTime: Date, endTime: Date) {
this.weekToShow()
if (!this.eventService.hasAnyCalendar) {
return false
}
this.array = [];
this.rangeStartDate = startTime
this.rangeEndDate = endTime
@@ -708,16 +704,14 @@ export class AgendaPage implements OnInit {
tracing.addEvent('load range start')
if (SessionStore?.user?.OwnerCalendars?.length == 0 && SessionStore.user.SharedCalendars.length == 0) {
return false
}
this.rangeStartDate = startTime
this.rangeEndDate = endTime
const selectedCalendarIds = await this.getSelectedAgendaCalendars()
this.listToPresent = this.CalendarStore.getEventsByCalendarIds(selectedCalendarIds)
// console.log('this.listToPresent', this.listToPresent)
this.updateEventListBox()
try {
@@ -727,6 +721,8 @@ export class AgendaPage implements OnInit {
let load = 0;
// console.log('selectedCalendarIds', selectedCalendarIds)
for (const selectedCalendar of selectedCalendarIds) {
if(selectedCalendar.wxUserId) {
@@ -826,6 +822,8 @@ export class AgendaPage implements OnInit {
const data = await this.AgendaDataRepositoryService.geCalendars()
// console.log('this.AgendaDataRepositoryService.geCalendars()', data)
const array = []
const selected = data.find( e => e.wxUserId == this.selectedUserCalendar)
@@ -1,16 +0,0 @@
import { TestBed } from '@angular/core/testing';
import { CameraService } from './camera.service';
describe('CameraService', () => {
let service: CameraService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(CameraService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
@@ -1,9 +0,0 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class CameraService {
constructor() { }
}
@@ -89,7 +89,7 @@ export class NativeNotificationService {
const notifications = [];
console.log({events});
// console.log({events});
events = events
.filter(e => new Date().getTime() <= new Date(e.start).getTime())