Browse Source

feat(iot-hub): wire resolver component into routing and module

pull/15539/head
Andrii Shvaika 5 months ago
parent
commit
e35e0df982
  1. 18
      ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-routing.module.ts
  2. 4
      ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub.module.ts

18
ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-routing.module.ts

@ -23,6 +23,7 @@ import { TbIotHubItemsPageComponent } from './iot-hub-items-page.component';
import { TbIotHubCreatorProfileComponent } from './iot-hub-creator-profile.component';
import { TbIotHubInstalledItemsComponent } from './iot-hub-installed-items.component';
import { TbIotHubSearchPageComponent } from './iot-hub-search-page.component';
import { TbIotHubItemResolverComponent } from './iot-hub-item-resolver.component';
const routes: Routes = [
{
@ -138,6 +139,23 @@ const routes: Routes = [
icon: 'person'
}
}
},
{
path: ':itemId',
component: TbIotHubItemResolverComponent,
data: {
auth: [Authority.TENANT_ADMIN],
title: 'iot-hub.item-detail'
}
},
{
path: ':itemId/preview',
component: TbIotHubItemResolverComponent,
data: {
auth: [Authority.TENANT_ADMIN],
title: 'iot-hub.item-preview',
preview: true
}
}
]
}

4
ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub.module.ts

@ -24,6 +24,7 @@ import { TbIotHubItemsPageComponent } from './iot-hub-items-page.component';
import { TbIotHubCreatorProfileComponent } from './iot-hub-creator-profile.component';
import { TbIotHubInstalledItemsComponent } from './iot-hub-installed-items.component';
import { TbIotHubSearchPageComponent } from './iot-hub-search-page.component';
import { TbIotHubItemResolverComponent } from './iot-hub-item-resolver.component';
@NgModule({
declarations: [
@ -31,7 +32,8 @@ import { TbIotHubSearchPageComponent } from './iot-hub-search-page.component';
TbIotHubItemsPageComponent,
TbIotHubCreatorProfileComponent,
TbIotHubInstalledItemsComponent,
TbIotHubSearchPageComponent
TbIotHubSearchPageComponent,
TbIotHubItemResolverComponent
],
imports: [
CommonModule,

Loading…
Cancel
Save