ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.html
@switch (ws.type) { @case ('placeholder') { } @case ('connectivity') {
{{ 'iot-hub.device-install-select-connectivity' | translate }}
@for (ct of availableInstallMethods; track ct) { @if (installMethodIcons.get(ct); as iconUrl) { } {{ installMethodLabels.get(ct) || ct }} @if (peOnlyInstallMethods.has(ct)) { {{ 'iot-hub.pe-only' | translate }} } }
} @case ('instruction') { } @case ('form') {
} @case ('progress') { @for (ep of ws.entitySteps; track ep.step.name; let i = $index) { @if (i > 0) {
} @if (ep.status === 'conflict' || ep.status === 'error') {
warning
{{ ('iot-hub.device-install-step-type-' + ep.step.type | translate) + ' — ' + (ep.resolvedName || ep.step.name) }} @if (ep.status === 'conflict') { {{ 'iot-hub.device-install-conflict-exists' | translate:{ type: ('iot-hub.device-install-step-type-' + ep.step.type | translate) } }} } @if (ep.status === 'error' && ep.errorMessage) { {{ ep.errorMessage }} }
@if (ep.status === 'conflict') { @if (ep.conflictType === 'use-or-overwrite') { {{ 'iot-hub.device-install-use-existing' | translate }} {{ 'iot-hub.device-install-overwrite' | translate }} } @else { {{ 'iot-hub.device-install-create-copy' | translate }} {{ 'iot-hub.device-install-overwrite' | translate }} } } @if (ep.status === 'error') { {{ 'action.retry' | translate }} }
} @else {
@switch (ep.status) { @case ('pending') { {{ i + 1 }} } @case ('running') { } @case ('success') { check_circle } } {{ ('iot-hub.device-install-step-type-' + ep.step.type | translate) + ' — ' + (ep.resolvedName || ep.step.name) }} @if (ep.status === 'success') { {{ 'iot-hub.done' | translate }} } @if (ep.status === 'running') { {{ 'iot-hub.in-progress' | translate }} } } } } } @if (loading) {
} @else {
close @if (reviewMode) { @for (ws of wizardSteps; track ws.label) { } {{ 'action.close' | translate }} @if (primaryEntityAction; as action) { {{ action.label }} } } @else { done @for (ws of wizardSteps; track ws.label) { {{ ws.label }} } @if (allProgressDone) { {{ 'action.close' | translate }} } @else { {{ 'action.cancel' | translate }} } @if (!isFirstWizardStep) { {{ 'action.back' | translate }} } @if (currentWizardStep; as step) { @switch (step.type) { @case ('connectivity') { {{ 'action.next' | translate }}@if (nextWizardStepLabel) {: {{ nextWizardStepLabel }}} } @case ('instruction') { @if (isLastWizardStep) { {{ 'action.close' | translate }} @if (primaryEntityAction; as action) { {{ action.label }} } } @else { {{ 'action.next' | translate }}@if (nextWizardStepLabel) {: {{ nextWizardStepLabel }}} } } @case ('form') { {{ 'action.next' | translate }}@if (nextWizardStepLabel) {: {{ nextWizardStepLabel }}} } @case ('progress') { @if (step.progressError) { {{ 'action.retry' | translate }} } @else if (step.progressDone && isLastWizardStep) { {{ 'action.close' | translate }} @if (primaryEntityAction; as action) { {{ action.label }} } } @else if (!step.progressError) { {{ 'action.next' | translate }}@if (nextWizardStepLabel) {: {{ nextWizardStepLabel }}} } } } } } }