Skip to content

Commit ca622c1

Browse files
Mariela TihovaMariela Tihova
authored andcommitted
Edited home component according to the new grid project paths
1 parent 3011cee commit ca622c1

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/app/views/home/home.component.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@
44
<div
55
class="tab-item-container"
66
*ngFor="let tab of activeTabs"
7-
[routerLink]="isChartsSection ? ['charts', tab.key] : [tab.key]"
7+
[routerLink]="isChartsSection ? ['charts', tab.key] : ['grids', tab.key]"
88
routerLinkActive
99
#rla="routerLinkActive"
1010
>
1111
<ng-container
1212
[ngTemplateOutlet]="tabItemTemplate"
1313
[ngTemplateOutletContext]="{
1414
enabled: rla.isActive,
15-
tabName: isChartsSection ? 'charts/' + tab.key : tab.key
15+
tabName: (isChartsSection ? 'charts/' : 'grids/') + tab.key
1616
}"
1717
></ng-container>
1818
</div>
1919
</div>
2020

21-
2221
<ng-container *ngFor="let tab of activeTabs">
2322
<ng-container
2423
*ngIf="router.url.includes(tab.key)"
2524
[ngTemplateOutlet]="tabItemInfoTemplate"
26-
[ngTemplateOutletContext]="{ tabName: isChartsSection ? 'charts/' + tab.key : tab.key }"
25+
[ngTemplateOutletContext]="{
26+
tabName: (isChartsSection ? 'charts/' : 'grids/') + tab.key
27+
}"
2728
></ng-container>
2829
</ng-container>
29-
3030
</div>
3131

3232
<div class="router-container">

src/app/views/home/home.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,39 +71,39 @@ export class HomeComponent {
7171
}
7272

7373
public tabInfoGrids = new Map<string, TabInfo>([
74-
['inventory', {
74+
['grids/inventory', {
7575
title: "ERP/Inventory",
7676
theme: "Material",
7777
themeMode: 'Light',
7878
content: "Tracking and managing quantity, location and details of products in stock.",
7979
moreLink: "https://www.infragistics.com/products/ignite-ui-angular/angular/components/hierarchicalgrid/hierarchical-grid",
8080
downloadLink: "https://www.infragistics.com/resources/sample-applications/erp-inventory-sample-app"
8181
}],
82-
['hr-portal', {
82+
['grids/hr-portal', {
8383
title: "Org Chart/HR Portal",
8484
theme: "Fluent",
8585
themeMode: 'Light',
8686
content: "Displaying company's hierarchical structure and showing employees data.",
8787
moreLink: "https://www.infragistics.com/products/ignite-ui-angular/angular/components/treegrid/tree-grid",
8888
downloadLink: "https://www.infragistics.com/resources/sample-applications/org-charthr-portal-sample-app"
8989
}],
90-
['finance', {
90+
['grids/finance', {
9191
title: "Financial Portfolio",
9292
theme: "Bootstrap",
9393
themeMode: 'Light',
9494
content: "Asset tracking, profit and loss analysis, featuring interactive dynamic charts.",
9595
moreLink: "https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid/grid",
9696
downloadLink: "https://www.infragistics.com/resources/sample-applications/financial-portfolio-sample-app"
9797
}],
98-
['sales', {
98+
['grids/sales', {
9999
title: "Sales Dashboard",
100100
theme: "Indigo",
101101
themeMode: 'Light',
102102
content: "For trend analysis, KPIs and viewing sales summaries by region, product, etc.",
103103
moreLink: "https://www.infragistics.com/products/ignite-ui-angular/angular/components/pivotGrid/pivot-grid",
104104
downloadLink: "https://www.infragistics.com/resources/sample-applications/sales-grid-sample-app"
105105
}],
106-
['fleet', {
106+
['grids/fleet', {
107107
title: "Fleet Management",
108108
theme: "Material",
109109
themeMode: 'Dark',

0 commit comments

Comments
 (0)