Bläddra i källkod

Partial commit

master
kj1352 4 år sedan
förälder
incheckning
929061e6ab
1 ändrade filer med 13 tillägg och 0 borttagningar
  1. +13
    -0
      src/app/schedules/schedules.component.ts

+ 13
- 0
src/app/schedules/schedules.component.ts Visa fil

@@ -32,6 +32,9 @@ export class SchedulesComponent implements OnInit {
isBeforeMidday: false isBeforeMidday: false
}; };


profile_type: string = '';
profile_info: any;

constructor() { } constructor() { }


ngOnInit() { ngOnInit() {
@@ -40,6 +43,16 @@ export class SchedulesComponent implements OnInit {
this.currentDate = new Date().getDate(); this.currentDate = new Date().getDate();
this.currentMonth = this.monthMap[(new Date()).getMonth()]; this.currentMonth = this.monthMap[(new Date()).getMonth()];
this.renderCalendar(); 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<number>) { selectDates(dates: Array<number>) {


Laddar…
Avbryt
Spara