mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
hide navigation bar if user dosent have own calendare
This commit is contained in:
@@ -248,6 +248,21 @@ export class EventsPage implements OnInit {
|
||||
this.totalEvent = list.length;
|
||||
this.showLoader = false;
|
||||
|
||||
} else {
|
||||
|
||||
if(this.loggeduser.OwnerCalendars.length >= 1) {
|
||||
console.log('OWN caledare')
|
||||
let onwEvent:any = await this.eventService.getAllOwnEvents(start, end)
|
||||
this.listToPresent = onwEvent;
|
||||
this.totalEvent = onwEvent.length;
|
||||
this.showLoader = false;
|
||||
} else {
|
||||
console.log('ELSE')
|
||||
}
|
||||
|
||||
//if need share calendare
|
||||
//this.eventService.genericGetAllSharedEvents
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user