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 new file mode 100644 index 0000000000..75eb44dddc --- /dev/null +++ b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-delete-dialog.component.ts @@ -0,0 +1,83 @@ +/// +/// 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; +} + +@Component({ + selector: 'tb-iot-hub-delete-dialog', + standalone: false, + template: ` +
{{ 'iot-hub.delete-desc' | translate }}
+{{ 'iot-hub.install-desc' | translate }}
+ } + @case ('select-entity') { +{{ 'iot-hub.select-entity-for-cf' | translate:{ name: item.name } }}
+{{ 'iot-hub.install-desc' | translate }}
+ } + @case ('success') { +{{ 'iot-hub.install-success-desc' | translate:{ name: item.name } }}
+ } + @case ('error') { +{{ 'iot-hub.install-error-message' | translate:{ name: item.name } }}
+{{ 'iot-hub.install-confirm' | translate:{ name: item.name, version: item.version } }}
- - -{{ 'iot-hub.select-entity-for-cf' | translate:{ name: item.name } }}
-{{ 'iot-hub.install-confirm' | translate:{ name: item.name, version: item.version } }}
- - -{{ 'iot-hub.install-success-message' | translate:{ name: item.name, version: item.version } }}
-{{ 'iot-hub.install-error-message' | translate:{ name: item.name } }}
-