added services grid view
This commit is contained in:
@@ -12,10 +12,14 @@ export class ServicesComponent implements OnInit {
|
||||
|
||||
baseServices: Array<any>;
|
||||
serviceCategory: any = {};
|
||||
view = 'grid';
|
||||
|
||||
constructor(private serviceService: ServiceService, private i18n: I18nService) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
|
||||
this.view = localStorage.getItem("bstly.servicesView") || 'grid';
|
||||
|
||||
this.serviceService.services().subscribe((data: Array<any>) => {
|
||||
let that = this;
|
||||
that.baseServices = [];
|
||||
@@ -32,4 +36,8 @@ export class ServicesComponent implements OnInit {
|
||||
})
|
||||
}
|
||||
|
||||
updateView(): void {
|
||||
localStorage.setItem("bstly.servicesView", this.view);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user