ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.html
@switch (state) { @case ('confirm') {
{{ 'iot-hub.install-desc' | translate }}
} @case ('select-entity') {
@if (item.type === ItemType.RULE_CHAIN) {
{{ 'iot-hub.rule-chain-install-subtitle' | translate }}
{{ 'iot-hub.rule-chain-set-as-profile-default-toggle' | translate }} @if (ruleChainInstallForm.controls.setAsDefault.value) {
} } @else { @if (activeSelectEntityConfig?.promptKey) {
} } } @case ('confirm-overwrite') {
} @case ('plan') {
@if (planSummary.willInstall > 0) { {{ 'iot-hub.install-plan-will-install' | translate:{ count: planSummary.willInstall } }} } @if (planSummary.alreadyInstalled > 0) { {{ 'iot-hub.install-plan-will-update' | translate:{ count: planSummary.alreadyInstalled } }} }
@if (planSummary.missing > 0) {
{{ 'iot-hub.install-plan-missing-warning' | translate:{ count: planSummary.missing } }}
} @for (entry of installPlan?.entries; track entry.itemId) { - {{ entry.name || entry.itemId }} @if (entry.type) { {{ (typeTranslations.get(entry.type) || entry.type) | translate }} } @if (entry.version) { v{{ entry.version }} } @switch (entry.status) { @case (PlanStatus.WILL_INSTALL) { {{ 'iot-hub.install-plan-status-will' | translate }} } @case (PlanStatus.ALREADY_INSTALLED) { {{ 'iot-hub.install-plan-status-installed' | translate }} } @case (PlanStatus.MISSING) { {{ 'iot-hub.install-plan-status-missing' | translate }} } } } } @case ('installing') {
{{ 'iot-hub.install-desc' | translate }}
} @case ('success') {
{{ 'iot-hub.install-success-desc' | translate:{ name: item.name } }}
} @case ('partial') {
{{ 'iot-hub.install-partial-desc' | translate:{ name: item.name } }}
@for (entry of missingEntries; track entry.itemId) { - {{ entry.name || entry.itemId }} @if (entry.errorMessage) { {{ entry.errorMessage }} } } } @case ('error') {
{{ 'iot-hub.install-error-message' | translate:{ name: item.name } }}
@if (item.type === ItemType.SOLUTION_TEMPLATE) { } @else { {{ errorMessage }} } } } @switch (state) { @case ('confirm') { {{ 'action.cancel' | translate }} @if (resolvingPlan) { } {{ 'iot-hub.install' | translate }} } @case ('select-entity') { {{ 'action.cancel' | translate }} @if (item.type === ItemType.RULE_CHAIN) { @if (resolvingPlan) { } {{ 'iot-hub.install' | translate }} } @else { @if (resolvingPlan) { } {{ 'iot-hub.install' | translate }} } } @case ('confirm-overwrite') { {{ 'action.cancel' | translate }} @if (resolvingPlan) { } {{ 'iot-hub.rule-chain-overwrite-replace' | translate }} } @case ('plan') { {{ 'action.cancel' | translate }} @if (planSummary.willInstall > 0) { {{ 'iot-hub.install-plan-confirm' | translate }} } } @case ('installing') { {{ 'action.cancel' | translate }} {{ 'iot-hub.installing' | translate }} } @case ('success') { {{ (entityDetailsUrl ? 'action.cancel' : 'action.close') | translate }} @if (entityDetailsUrl) { {{ 'iot-hub.open-item-type' | translate:{ type: getTypeLabel() } }} } } @case ('partial') { {{ (entityDetailsUrl ? 'action.cancel' : 'action.close') | translate }} @if (entityDetailsUrl) { {{ 'iot-hub.open-item-type' | translate:{ type: getTypeLabel() } }} } } @case ('error') { {{ 'action.close' | translate }} } }