From ae58450db614868a8f286f8c16fc7acf1071f5d3 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Tue, 7 Apr 2026 16:05:34 +0300 Subject: [PATCH] Move all IoT Hub dialogs to HomeComponentsModule - Move iot-hub-install-dialog to home/components/iot-hub/ - Move iot-hub-update-dialog to home/components/iot-hub/ - Move iot-hub-delete-dialog to home/components/iot-hub/ (with new separate HTML/SCSS) - Move device-install-dialog to home/components/iot-hub/device-install-dialog/ - Register all in HomeComponentsModule (declarations + exports) - Remove from IotHubModule declarations - Update all imports across home/browse/search/installed/detail/widget-select --- .../home/components/home-components.module.ts | 12 +++ .../device-install-dialog.component.html | 0 .../device-install-dialog.component.scss | 0 .../device-install-dialog.component.ts | 0 .../iot-hub/iot-hub-browse.component.ts | 8 +- .../iot-hub-delete-dialog.component.html | 25 ++++++ .../iot-hub-delete-dialog.component.scss | 48 +++++++++++ .../iot-hub-delete-dialog.component.ts | 45 ++++++++++ .../iot-hub-install-dialog.component.html | 0 .../iot-hub-install-dialog.component.scss | 0 .../iot-hub-install-dialog.component.ts | 0 .../iot-hub-item-detail-dialog.component.ts | 8 +- .../iot-hub-update-dialog.component.html | 0 .../iot-hub-update-dialog.component.scss | 0 .../iot-hub-update-dialog.component.ts | 0 .../iot-hub-delete-dialog.component.ts | 84 ------------------- .../pages/iot-hub/iot-hub-home.component.ts | 8 +- .../iot-hub-installed-items.component.ts | 4 +- .../pages/iot-hub/iot-hub-search.component.ts | 8 +- .../home/pages/iot-hub/iot-hub.module.ts | 8 -- 20 files changed, 148 insertions(+), 110 deletions(-) rename ui-ngx/src/app/modules/home/{pages => components}/iot-hub/device-install-dialog/device-install-dialog.component.html (100%) rename ui-ngx/src/app/modules/home/{pages => components}/iot-hub/device-install-dialog/device-install-dialog.component.scss (100%) rename ui-ngx/src/app/modules/home/{pages => components}/iot-hub/device-install-dialog/device-install-dialog.component.ts (100%) create mode 100644 ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-delete-dialog.component.html create mode 100644 ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-delete-dialog.component.scss create mode 100644 ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-delete-dialog.component.ts rename ui-ngx/src/app/modules/home/{pages => components}/iot-hub/iot-hub-install-dialog.component.html (100%) rename ui-ngx/src/app/modules/home/{pages => components}/iot-hub/iot-hub-install-dialog.component.scss (100%) rename ui-ngx/src/app/modules/home/{pages => components}/iot-hub/iot-hub-install-dialog.component.ts (100%) rename ui-ngx/src/app/modules/home/{pages => components}/iot-hub/iot-hub-update-dialog.component.html (100%) rename ui-ngx/src/app/modules/home/{pages => components}/iot-hub/iot-hub-update-dialog.component.scss (100%) rename ui-ngx/src/app/modules/home/{pages => components}/iot-hub/iot-hub-update-dialog.component.ts (100%) delete mode 100644 ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-delete-dialog.component.ts diff --git a/ui-ngx/src/app/modules/home/components/home-components.module.ts b/ui-ngx/src/app/modules/home/components/home-components.module.ts index 1f6fc3d021..84d578a59c 100644 --- a/ui-ngx/src/app/modules/home/components/home-components.module.ts +++ b/ui-ngx/src/app/modules/home/components/home-components.module.ts @@ -116,6 +116,10 @@ import { TbIotHubItemDetailDialogComponent } from '@home/components/iot-hub/iot- import { TbIotHubBrowseComponent } from '@home/components/iot-hub/iot-hub-browse.component'; import { TbIotHubItemCardComponent } from '@home/components/iot-hub/iot-hub-item-card.component'; import { TbIotHubAddItemDialogComponent } from '@home/components/iot-hub/iot-hub-add-item-dialog.component'; +import { TbIotHubInstallDialogComponent } from '@home/components/iot-hub/iot-hub-install-dialog.component'; +import { TbIotHubUpdateDialogComponent } from '@home/components/iot-hub/iot-hub-update-dialog.component'; +import { TbIotHubDeleteDialogComponent } from '@home/components/iot-hub/iot-hub-delete-dialog.component'; +import { TbDeviceInstallDialogComponent } from '@home/components/iot-hub/device-install-dialog/device-install-dialog.component'; import { AddWidgetDialogComponent } from '@home/components/dashboard-page/add-widget-dialog.component'; import { ManageDashboardLayoutsDialogComponent } from '@home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component'; import { @@ -329,6 +333,10 @@ import { SolutionInstallDialogComponent } from '@home/components/solution/soluti TbIotHubBrowseComponent, TbIotHubItemCardComponent, TbIotHubAddItemDialogComponent, + TbIotHubInstallDialogComponent, + TbIotHubUpdateDialogComponent, + TbIotHubDeleteDialogComponent, + TbDeviceInstallDialogComponent, AddWidgetDialogComponent, MoveWidgetsDialogComponent, ManageDashboardLayoutsDialogComponent, @@ -483,6 +491,10 @@ import { SolutionInstallDialogComponent } from '@home/components/solution/soluti TbIotHubBrowseComponent, TbIotHubItemCardComponent, TbIotHubAddItemDialogComponent, + TbIotHubInstallDialogComponent, + TbIotHubUpdateDialogComponent, + TbIotHubDeleteDialogComponent, + TbDeviceInstallDialogComponent, AddWidgetDialogComponent, MoveWidgetsDialogComponent, ManageDashboardLayoutsDialogComponent, diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/device-install-dialog/device-install-dialog.component.html b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.html similarity index 100% rename from ui-ngx/src/app/modules/home/pages/iot-hub/device-install-dialog/device-install-dialog.component.html rename to ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.html diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/device-install-dialog/device-install-dialog.component.scss b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.scss similarity index 100% rename from ui-ngx/src/app/modules/home/pages/iot-hub/device-install-dialog/device-install-dialog.component.scss rename to ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.scss diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/device-install-dialog/device-install-dialog.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts similarity index 100% rename from ui-ngx/src/app/modules/home/pages/iot-hub/device-install-dialog/device-install-dialog.component.ts rename to ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.ts index d743a74cd1..beb7a14c60 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.ts +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.ts @@ -32,10 +32,10 @@ import { MatDialog } from '@angular/material/dialog'; import { TranslateService } from '@ngx-translate/core'; import { ActivatedRoute, Router } from '@angular/router'; import { TbIotHubItemDetailDialogComponent, IotHubItemDetailDialogData } from '@home/components/iot-hub/iot-hub-item-detail-dialog.component'; -import { TbIotHubInstallDialogComponent, IotHubInstallDialogData } from '@home/pages/iot-hub/iot-hub-install-dialog.component'; -import { TbIotHubUpdateDialogComponent, IotHubUpdateDialogData } from '@home/pages/iot-hub/iot-hub-update-dialog.component'; -import { TbIotHubDeleteDialogComponent, IotHubDeleteDialogData } from '@home/pages/iot-hub/iot-hub-delete-dialog.component'; -import { TbDeviceInstallDialogComponent, DeviceInstallDialogData } from '@home/pages/iot-hub/device-install-dialog/device-install-dialog.component'; +import { TbIotHubInstallDialogComponent, IotHubInstallDialogData } from '@home/components/iot-hub/iot-hub-install-dialog.component'; +import { TbIotHubUpdateDialogComponent, IotHubUpdateDialogData } from '@home/components/iot-hub/iot-hub-update-dialog.component'; +import { TbIotHubDeleteDialogComponent, IotHubDeleteDialogData } from '@home/components/iot-hub/iot-hub-delete-dialog.component'; +import { TbDeviceInstallDialogComponent, DeviceInstallDialogData } from '@home/components/iot-hub/device-install-dialog/device-install-dialog.component'; interface SortOption { value: string; diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-delete-dialog.component.html b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-delete-dialog.component.html new file mode 100644 index 0000000000..01e3a24c10 --- /dev/null +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-delete-dialog.component.html @@ -0,0 +1,25 @@ + +
+

{{ 'iot-hub.remove-confirm-title' | translate:{ name: data.itemName } }}

+

{{ (data.itemType === 'SOLUTION_TEMPLATE' ? 'iot-hub.remove-desc-solution-template' : 'iot-hub.remove-desc') | translate }}

+
+
+ + +
diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-delete-dialog.component.scss b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-delete-dialog.component.scss new file mode 100644 index 0000000000..731f4c7654 --- /dev/null +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-delete-dialog.component.scss @@ -0,0 +1,48 @@ +/** + * Copyright © 2016-2026 The Thingsboard Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +.tb-iot-hub-delete-content { + display: flex; + flex-direction: column; + gap: 20px; + padding: 24px; +} + +.tb-iot-hub-delete-title { + font-size: 20px; + font-weight: 600; + line-height: 24px; + letter-spacing: 0.1px; + color: rgba(0, 0, 0, 0.87); + margin: 0; +} + +.tb-iot-hub-delete-desc { + font-size: 14px; + font-weight: 400; + line-height: 20px; + letter-spacing: 0.2px; + color: rgba(0, 0, 0, 0.54); + margin: 0; +} + +.tb-iot-hub-delete-actions { + display: flex; + align-items: center; + justify-content: flex-end; + gap: 8px; + padding: 8px; +} diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-delete-dialog.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-delete-dialog.component.ts new file mode 100644 index 0000000000..e327cd234a --- /dev/null +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-delete-dialog.component.ts @@ -0,0 +1,45 @@ +/// +/// Copyright © 2016-2026 The Thingsboard Authors +/// +/// Licensed under the Apache License, Version 2.0 (the "License"); +/// you may not use this file except in compliance with the License. +/// You may obtain a copy of the License at +/// +/// http://www.apache.org/licenses/LICENSE-2.0 +/// +/// Unless required by applicable law or agreed to in writing, software +/// distributed under the License is distributed on an "AS IS" BASIS, +/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +/// See the License for the specific language governing permissions and +/// limitations under the License. +/// + +import { Component, Inject } from '@angular/core'; +import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; + +export interface IotHubDeleteDialogData { + itemName: string; + itemType?: string; +} + +@Component({ + selector: 'tb-iot-hub-delete-dialog', + standalone: false, + templateUrl: './iot-hub-delete-dialog.component.html', + styleUrls: ['./iot-hub-delete-dialog.component.scss'] +}) +export class TbIotHubDeleteDialogComponent { + + constructor( + @Inject(MAT_DIALOG_DATA) public data: IotHubDeleteDialogData, + private dialogRef: MatDialogRef + ) {} + + confirm(): void { + this.dialogRef.close(true); + } + + cancel(): void { + this.dialogRef.close(false); + } +} diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-install-dialog.component.html b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.html similarity index 100% rename from ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-install-dialog.component.html rename to ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.html diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-install-dialog.component.scss b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.scss similarity index 100% rename from ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-install-dialog.component.scss rename to ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.scss diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-install-dialog.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.ts similarity index 100% rename from ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-install-dialog.component.ts rename to ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.ts diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-detail-dialog.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-detail-dialog.component.ts index 0f9d899880..8fd5fdcae7 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-detail-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-detail-dialog.component.ts @@ -24,10 +24,10 @@ import { IotHubApiService } from '@core/http/iot-hub-api.service'; import { TranslateService } from '@ngx-translate/core'; import { EntityType } from '@shared/models/entity-type.models'; import { getEntityDetailsPageURL } from '@core/utils'; -import { TbIotHubInstallDialogComponent, IotHubInstallDialogData } from '@home/pages/iot-hub/iot-hub-install-dialog.component'; -import { TbIotHubUpdateDialogComponent, IotHubUpdateDialogData } from '@home/pages/iot-hub/iot-hub-update-dialog.component'; -import { TbIotHubDeleteDialogComponent, IotHubDeleteDialogData } from '@home/pages/iot-hub/iot-hub-delete-dialog.component'; -import { TbDeviceInstallDialogComponent, DeviceInstallDialogData } from '@home/pages/iot-hub/device-install-dialog/device-install-dialog.component'; +import { TbIotHubInstallDialogComponent, IotHubInstallDialogData } from '@home/components/iot-hub/iot-hub-install-dialog.component'; +import { TbIotHubUpdateDialogComponent, IotHubUpdateDialogData } from '@home/components/iot-hub/iot-hub-update-dialog.component'; +import { TbIotHubDeleteDialogComponent, IotHubDeleteDialogData } from '@home/components/iot-hub/iot-hub-delete-dialog.component'; +import { TbDeviceInstallDialogComponent, DeviceInstallDialogData } from '@home/components/iot-hub/device-install-dialog/device-install-dialog.component'; import { SolutionInstallDialogComponent } from '@home/components/solution/solution-install-dialog.component'; import { SolutionTemplateInstalledItemDescriptor } from '@shared/models/iot-hub/iot-hub-installed-item.models'; diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-update-dialog.component.html b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-update-dialog.component.html similarity index 100% rename from ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-update-dialog.component.html rename to ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-update-dialog.component.html diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-update-dialog.component.scss b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-update-dialog.component.scss similarity index 100% rename from ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-update-dialog.component.scss rename to ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-update-dialog.component.scss diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-update-dialog.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-update-dialog.component.ts similarity index 100% rename from ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-update-dialog.component.ts rename to ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-update-dialog.component.ts diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-delete-dialog.component.ts b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-delete-dialog.component.ts deleted file mode 100644 index 5ca9d623b4..0000000000 --- a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-delete-dialog.component.ts +++ /dev/null @@ -1,84 +0,0 @@ -/// -/// Copyright © 2016-2026 The Thingsboard Authors -/// -/// Licensed under the Apache License, Version 2.0 (the "License"); -/// you may not use this file except in compliance with the License. -/// You may obtain a copy of the License at -/// -/// http://www.apache.org/licenses/LICENSE-2.0 -/// -/// Unless required by applicable law or agreed to in writing, software -/// distributed under the License is distributed on an "AS IS" BASIS, -/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -/// See the License for the specific language governing permissions and -/// limitations under the License. -/// - -import { Component, Inject } from '@angular/core'; -import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; - -export interface IotHubDeleteDialogData { - itemName: string; - itemType?: string; -} - -@Component({ - selector: 'tb-iot-hub-delete-dialog', - standalone: false, - template: ` -
-

{{ 'iot-hub.remove-confirm-title' | translate:{ name: data.itemName } }}

-

{{ (data.itemType === 'SOLUTION_TEMPLATE' ? 'iot-hub.remove-desc-solution-template' : 'iot-hub.remove-desc') | translate }}

-
-
- - -
- `, - styles: [` - .tb-iot-hub-delete-content { - display: flex; - flex-direction: column; - gap: 20px; - padding: 24px; - } - .tb-iot-hub-delete-title { - font-size: 20px; - font-weight: 600; - line-height: 24px; - letter-spacing: 0.1px; - color: rgba(0, 0, 0, 0.87); - margin: 0; - } - .tb-iot-hub-delete-desc { - font-size: 14px; - font-weight: 400; - line-height: 20px; - letter-spacing: 0.2px; - color: rgba(0, 0, 0, 0.54); - margin: 0; - } - .tb-iot-hub-delete-actions { - display: flex; - align-items: center; - justify-content: flex-end; - gap: 8px; - padding: 8px; - } - `] -}) -export class TbIotHubDeleteDialogComponent { - - constructor( - @Inject(MAT_DIALOG_DATA) public data: IotHubDeleteDialogData, - private dialogRef: MatDialogRef - ) {} - - confirm(): void { - this.dialogRef.close(true); - } - - cancel(): void { - this.dialogRef.close(false); - } -} diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-home.component.ts b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-home.component.ts index a4fbe448a8..c7add2b506 100644 --- a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-home.component.ts +++ b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-home.component.ts @@ -31,10 +31,10 @@ import { IotHubInstalledItem } from '@shared/models/iot-hub/iot-hub-installed-it import { IotHubApiService } from '@core/http/iot-hub-api.service'; import { TranslateService } from '@ngx-translate/core'; import { TbIotHubItemDetailDialogComponent, IotHubItemDetailDialogData } from '@home/components/iot-hub/iot-hub-item-detail-dialog.component'; -import { TbIotHubInstallDialogComponent, IotHubInstallDialogData } from './iot-hub-install-dialog.component'; -import { TbIotHubUpdateDialogComponent, IotHubUpdateDialogData } from './iot-hub-update-dialog.component'; -import { TbIotHubDeleteDialogComponent, IotHubDeleteDialogData } from './iot-hub-delete-dialog.component'; -import { TbDeviceInstallDialogComponent, DeviceInstallDialogData } from './device-install-dialog/device-install-dialog.component'; +import { TbIotHubInstallDialogComponent, IotHubInstallDialogData } from '@home/components/iot-hub/iot-hub-install-dialog.component'; +import { TbIotHubUpdateDialogComponent, IotHubUpdateDialogData } from '@home/components/iot-hub/iot-hub-update-dialog.component'; +import { TbIotHubDeleteDialogComponent, IotHubDeleteDialogData } from '@home/components/iot-hub/iot-hub-delete-dialog.component'; +import { TbDeviceInstallDialogComponent, DeviceInstallDialogData } from '@home/components/iot-hub/device-install-dialog/device-install-dialog.component'; interface CategoryCard { type: ItemType; diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-installed-items.component.ts b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-installed-items.component.ts index 54f5dead5b..74484aea26 100644 --- a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-installed-items.component.ts +++ b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-installed-items.component.ts @@ -34,8 +34,8 @@ import { ItemType, itemTypeTranslations } from '@shared/models/iot-hub/iot-hub-i import { EntityType } from '@shared/models/entity-type.models'; import { getEntityDetailsPageURL } from '@core/utils'; import { TbIotHubItemDetailDialogComponent, IotHubItemDetailDialogData } from '@home/components/iot-hub/iot-hub-item-detail-dialog.component'; -import { TbIotHubUpdateDialogComponent, IotHubUpdateDialogData } from './iot-hub-update-dialog.component'; -import { TbIotHubDeleteDialogComponent, IotHubDeleteDialogData } from './iot-hub-delete-dialog.component'; +import { TbIotHubUpdateDialogComponent, IotHubUpdateDialogData } from '@home/components/iot-hub/iot-hub-update-dialog.component'; +import { TbIotHubDeleteDialogComponent, IotHubDeleteDialogData } from '@home/components/iot-hub/iot-hub-delete-dialog.component'; @Component({ selector: 'tb-iot-hub-installed-items', diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-search.component.ts b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-search.component.ts index 64a1fadc0a..cddc7a91ee 100644 --- a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-search.component.ts +++ b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-search.component.ts @@ -27,10 +27,10 @@ import { ItemType, itemTypeTranslations } from '@shared/models/iot-hub/iot-hub-i import { IotHubInstalledItem } from '@shared/models/iot-hub/iot-hub-installed-item.models'; import { IotHubApiService } from '@core/http/iot-hub-api.service'; import { TbIotHubItemDetailDialogComponent, IotHubItemDetailDialogData } from '@home/components/iot-hub/iot-hub-item-detail-dialog.component'; -import { TbIotHubInstallDialogComponent, IotHubInstallDialogData } from './iot-hub-install-dialog.component'; -import { TbIotHubUpdateDialogComponent, IotHubUpdateDialogData } from './iot-hub-update-dialog.component'; -import { TbIotHubDeleteDialogComponent, IotHubDeleteDialogData } from './iot-hub-delete-dialog.component'; -import { TbDeviceInstallDialogComponent, DeviceInstallDialogData } from './device-install-dialog/device-install-dialog.component'; +import { TbIotHubInstallDialogComponent, IotHubInstallDialogData } from '@home/components/iot-hub/iot-hub-install-dialog.component'; +import { TbIotHubUpdateDialogComponent, IotHubUpdateDialogData } from '@home/components/iot-hub/iot-hub-update-dialog.component'; +import { TbIotHubDeleteDialogComponent, IotHubDeleteDialogData } from '@home/components/iot-hub/iot-hub-delete-dialog.component'; +import { TbDeviceInstallDialogComponent, DeviceInstallDialogData } from '@home/components/iot-hub/device-install-dialog/device-install-dialog.component'; interface SearchResultGroup { type: ItemType; diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub.module.ts b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub.module.ts index 61f1d1f388..f1f2554362 100644 --- a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub.module.ts +++ b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub.module.ts @@ -22,11 +22,7 @@ import { IotHubRoutingModule } from './iot-hub-routing.module'; import { TbIotHubHomeComponent } from './iot-hub-home.component'; import { TbIotHubItemsPageComponent } from './iot-hub-items-page.component'; import { TbIotHubCreatorProfileComponent } from './iot-hub-creator-profile.component'; -import { TbIotHubInstallDialogComponent } from './iot-hub-install-dialog.component'; import { TbIotHubInstalledItemsComponent } from './iot-hub-installed-items.component'; -import { TbIotHubUpdateDialogComponent } from './iot-hub-update-dialog.component'; -import { TbIotHubDeleteDialogComponent } from './iot-hub-delete-dialog.component'; -import { TbDeviceInstallDialogComponent } from './device-install-dialog/device-install-dialog.component'; import { TbIotHubSearchComponent } from './iot-hub-search.component'; @NgModule({ @@ -34,11 +30,7 @@ import { TbIotHubSearchComponent } from './iot-hub-search.component'; TbIotHubHomeComponent, TbIotHubItemsPageComponent, TbIotHubCreatorProfileComponent, - TbIotHubInstallDialogComponent, TbIotHubInstalledItemsComponent, - TbIotHubUpdateDialogComponent, - TbIotHubDeleteDialogComponent, - TbDeviceInstallDialogComponent, TbIotHubSearchComponent ], imports: [