mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
remove all service validation
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
export class DispatchController {
|
||||
|
||||
}
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user