mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
remove all service validation
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user