migration

This commit is contained in:
_Bastler
2022-01-21 22:38:31 +01:00
parent 5cf6230005
commit 578e6e6981
36 changed files with 1473 additions and 1012 deletions
+14 -12
View File
@@ -20,19 +20,21 @@ export class ServicesComponent implements OnInit {
this.view = localStorage.getItem("bstly.servicesView") || 'grid';
this.serviceService.services().subscribe((data: Array<any>) => {
let that = this;
that.baseServices = [];
data.forEach(function (service) {
if (!service.category || service.category == "") {
that.baseServices.push(service);
} else {
if (!that.serviceCategory[ service.category ]) {
that.serviceCategory[ service.category ] = [];
this.serviceService.services().subscribe({
next: (data: Array<any>) => {
let that = this;
that.baseServices = [];
data.forEach(function (service) {
if (!service.category || service.category == "") {
that.baseServices.push(service);
} else {
if (!that.serviceCategory[ service.category ]) {
that.serviceCategory[ service.category ] = [];
}
that.serviceCategory[ service.category ].push(service);
}
that.serviceCategory[ service.category ].push(service);
}
})
})
}
})
}