Back to Thingsboard

Iot Hub Update Dialog.Component

ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-update-dialog.component.html

4.3.1.31.1 KB
Original Source

@switch (state) { @case ('confirm') {

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

{{ 'iot-hub.update-desc' | translate }}

} @case ('updating') {

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

{{ 'iot-hub.update-desc' | translate }}

} @case ('success') {

{{ 'iot-hub.update-success-title' | translate }}

{{ 'iot-hub.update-success-desc' | translate:{ name: data.itemName } }}

} @case ('error') {

{{ 'iot-hub.update-error-title' | translate }}

{{ 'iot-hub.update-error-message' | translate:{ name: data.itemName } }}

@if (data?.itemType === ItemType.SOLUTION_TEMPLATE) { } @else { {{ errorMessage }} } } } @switch (state) { @case ('confirm') { {{ 'action.cancel' | translate }}{{ 'iot-hub.update' | translate }} } @case ('updating') { {{ 'action.cancel' | translate }} {{ 'iot-hub.updating' | translate }} } @case ('success') { {{ (entityDetailsUrl ? 'action.cancel' : 'action.close') | translate }} @if (entityDetailsUrl) { {{ 'iot-hub.open-item-type' | translate:{ type: getTypeLabel() } }} } } @case ('error') { {{ 'action.close' | translate }} } }