|
@@ -24,6 +24,9 @@ import { DevicesTableConfigResolver } from "@home/pages/device/devices-table-con |
|
@@ -24,6 +24,9 @@ import { DevicesTableConfigResolver } from "@home/pages/device/devices-table-con |
24
|
import { EntityViewsTableConfigResolver } from "@home/pages/entity-view/entity-views-table-config.resolver";
|
24
|
import { EntityViewsTableConfigResolver } from "@home/pages/entity-view/entity-views-table-config.resolver";
|
25
|
import { DashboardsTableConfigResolver } from "@home/pages/dashboard/dashboards-table-config.resolver";
|
25
|
import { DashboardsTableConfigResolver } from "@home/pages/dashboard/dashboards-table-config.resolver";
|
26
|
import { RuleChainsTableConfigResolver } from "@home/pages/rulechain/rulechains-table-config.resolver";
|
26
|
import { RuleChainsTableConfigResolver } from "@home/pages/rulechain/rulechains-table-config.resolver";
|
|
|
27
|
+import { DashboardPageComponent } from "@home/pages/dashboard/dashboard-page.component";
|
|
|
28
|
+import { dashboardBreadcumbLabelFunction, DashboardResolver } from "@home/pages/dashboard/dashboard-routing.module";
|
|
|
29
|
+import { BreadCrumbConfig } from "@shared/components/breadcrumb";
|
27
|
|
30
|
|
28
|
const routes: Routes = [
|
31
|
const routes: Routes = [
|
29
|
{
|
32
|
{
|
|
@@ -108,19 +111,43 @@ const routes: Routes = [ |
|
@@ -108,19 +111,43 @@ const routes: Routes = [ |
108
|
},
|
111
|
},
|
109
|
{
|
112
|
{
|
110
|
path: ':edgeId/dashboards',
|
113
|
path: ':edgeId/dashboards',
|
111
|
- component: EntitiesTableComponent,
|
|
|
112
|
data: {
|
114
|
data: {
|
113
|
- auth: [Authority.TENANT_ADMIN, Authority.CUSTOMER_USER],
|
|
|
114
|
- dashboardsType: 'edge',
|
|
|
115
|
breadcrumb: {
|
115
|
breadcrumb: {
|
116
|
label: 'edge.dashboards',
|
116
|
label: 'edge.dashboards',
|
117
|
icon: 'dashboard'
|
117
|
icon: 'dashboard'
|
118
|
}
|
118
|
}
|
119
|
},
|
119
|
},
|
120
|
- resolve: {
|
|
|
121
|
- entitiesTableConfig: DashboardsTableConfigResolver
|
|
|
122
|
- }
|
|
|
123
|
- }]
|
120
|
+ children: [
|
|
|
121
|
+ {
|
|
|
122
|
+ path: '',
|
|
|
123
|
+ component: EntitiesTableComponent,
|
|
|
124
|
+ data: {
|
|
|
125
|
+ auth: [Authority.TENANT_ADMIN],
|
|
|
126
|
+ dashboardsType: 'edge'
|
|
|
127
|
+ },
|
|
|
128
|
+ resolve: {
|
|
|
129
|
+ entitiesTableConfig: DashboardsTableConfigResolver
|
|
|
130
|
+ },
|
|
|
131
|
+ },
|
|
|
132
|
+ {
|
|
|
133
|
+ path: ':dashboardId',
|
|
|
134
|
+ component: DashboardPageComponent,
|
|
|
135
|
+ data: {
|
|
|
136
|
+ breadcrumb: {
|
|
|
137
|
+ labelFunction: dashboardBreadcumbLabelFunction,
|
|
|
138
|
+ icon: 'dashboard'
|
|
|
139
|
+ } as BreadCrumbConfig<DashboardPageComponent>,
|
|
|
140
|
+ auth: [Authority.TENANT_ADMIN, Authority.CUSTOMER_USER],
|
|
|
141
|
+ title: 'edge.dashboard',
|
|
|
142
|
+ widgetEditMode: false
|
|
|
143
|
+ },
|
|
|
144
|
+ resolve: {
|
|
|
145
|
+ dashboard: DashboardResolver
|
|
|
146
|
+ }
|
|
|
147
|
+ }
|
|
|
148
|
+ ]
|
|
|
149
|
+ },
|
|
|
150
|
+ ]
|
124
|
}]
|
151
|
}]
|
125
|
|
152
|
|
126
|
@NgModule({
|
153
|
@NgModule({
|