mirror of
https://github.com/valitydev/koffing.git
synced 2024-11-06 09:15:20 +00:00
FE-404: fix type for shopID (#137)
This commit is contained in:
parent
9ea47b1954
commit
5adda5d481
@ -25,7 +25,7 @@ export class AnalyticsService {
|
||||
}
|
||||
|
||||
public getActiveShopID(): number {
|
||||
const routeShopID = Number(this.route.snapshot.params['shopID']);
|
||||
const routeShopID = this.route.snapshot.params['shopID'];
|
||||
return routeShopID ? routeShopID : this.getFromStorage(this.shops);
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ export class DashboardComponent implements OnInit {
|
||||
|
||||
public ngOnInit() {
|
||||
this.route.parent.params.subscribe((params: Params) => {
|
||||
this.shopID = Number(params['shopID']);
|
||||
this.shopID = params['shopID'];
|
||||
this.loadData(new DateRange(this.fromTime, this.toTime));
|
||||
});
|
||||
}
|
||||
|
@ -11,7 +11,7 @@
|
||||
a([routerLink]=["/analytics"])
|
||||
i.fa.fa-bar-chart-o
|
||||
| Аналитика
|
||||
li([routerLinkActive]="['active']")
|
||||
//li([routerLinkActive]="['active']")
|
||||
a([routerLink]=["/management"])
|
||||
i.fa.fa-shopping-cart
|
||||
| Управление магазинами
|
||||
|
Loading…
Reference in New Issue
Block a user