+ @switch (state) {
+ @case ('confirm') {
+
{{ 'iot-hub.install-confirm-title' | translate:{ name: item.name } }}
+
{{ 'iot-hub.install-desc' | translate }}
+ }
+ @case ('select-entity') {
+
{{ 'iot-hub.install-confirm-title' | translate:{ name: item.name } }}
+ @if (item.type === ItemType.RULE_CHAIN) {
+
{{ 'iot-hub.rule-chain-install-subtitle' | translate }}
+
+ } @else {
+ @if (activeSelectEntityConfig?.promptKey) {
+
+ }
+
+
+ }
+ }
+ @case ('confirm-overwrite') {
+
{{ 'iot-hub.rule-chain-overwrite-title' | translate }}
+
+ }
+ @case ('plan') {
+
{{ 'iot-hub.install-plan-title' | translate:{ name: item.name } }}
+
+ @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 } }}
+ }
+
+ }
+ @case ('installing') {
+
{{ 'iot-hub.install-confirm-title' | translate:{ name: item.name } }}
+
{{ 'iot-hub.install-desc' | translate }}
+ }
+ @case ('success') {
+
{{ 'iot-hub.install-success-title' | translate }}
+
{{ 'iot-hub.install-success-desc' | translate:{ name: item.name } }}
+ }
+ @case ('partial') {
+
{{ 'iot-hub.install-partial-title' | translate }}
+
{{ '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-title' | translate }}
+
{{ 'iot-hub.install-error-message' | translate:{ name: item.name } }}
+ @if (item.type === ItemType.SOLUTION_TEMPLATE) {
+
+ } @else {
+
+ {{ errorMessage }}
+
+ }
+ }
+ }
+
+