From 929061e6aba7c111359c656b4d77f2907eec89bb Mon Sep 17 00:00:00 2001 From: kj1352 Date: Sat, 6 Mar 2021 14:03:20 +0530 Subject: [PATCH] Partial commit --- src/app/schedules/schedules.component.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/app/schedules/schedules.component.ts b/src/app/schedules/schedules.component.ts index 84aff34..6b0b874 100644 --- a/src/app/schedules/schedules.component.ts +++ b/src/app/schedules/schedules.component.ts @@ -32,6 +32,9 @@ export class SchedulesComponent implements OnInit { isBeforeMidday: false }; + profile_type: string = ''; + profile_info: any; + constructor() { } ngOnInit() { @@ -40,6 +43,16 @@ export class SchedulesComponent implements OnInit { this.currentDate = new Date().getDate(); this.currentMonth = this.monthMap[(new Date()).getMonth()]; this.renderCalendar(); + + this.profile_type = localStorage.current_login_type; + + if (this.profile_type === 'VENDOR') { + this.profile_info = JSON.parse(localStorage.vendor_info); + } else if (this.profile_type === 'OUTLET') { + this.profile_info = JSON.parse(localStorage.outlet_info); + } + + console.log(this.profile_info); } selectDates(dates: Array) {