@ -51,6 +51,7 @@ export interface WizardStep {
type : WizardStepType ;
type : WizardStepType ;
label : string ;
label : string ;
rawSteps : DeviceInstallStep [ ] ;
rawSteps : DeviceInstallStep [ ] ;
completed : boolean ;
// Instruction
// Instruction
markdown? : string ;
markdown? : string ;
// Form
// Form
@ -172,6 +173,7 @@ export class TbDeviceInstallDialogComponent implements OnInit {
this . done ( ) ;
this . done ( ) ;
return ;
return ;
}
}
step . completed = true ;
this . stepper . next ( ) ;
this . stepper . next ( ) ;
this . onStepActivated ( ) ;
this . onStepActivated ( ) ;
}
}
@ -244,14 +246,16 @@ export class TbDeviceInstallDialogComponent implements OnInit {
this . wizardSteps . push ( {
this . wizardSteps . push ( {
type : 'instruction' ,
type : 'instruction' ,
label : step.name ,
label : step.name ,
rawSteps : [ step ]
rawSteps : [ step ] ,
completed : false
} ) ;
} ) ;
i ++ ;
i ++ ;
} else if ( step . type === InstallStepType . SHOW_FORM ) {
} else if ( step . type === InstallStepType . SHOW_FORM ) {
this . wizardSteps . push ( {
this . wizardSteps . push ( {
type : 'form' ,
type : 'form' ,
label : step.name ,
label : step.name ,
rawSteps : [ step ]
rawSteps : [ step ] ,
completed : false
} ) ;
} ) ;
i ++ ;
i ++ ;
} else if ( ENTITY_STEP_TYPES . has ( step . type ) ) {
} else if ( ENTITY_STEP_TYPES . has ( step . type ) ) {
@ -264,7 +268,8 @@ export class TbDeviceInstallDialogComponent implements OnInit {
this . wizardSteps . push ( {
this . wizardSteps . push ( {
type : 'progress' ,
type : 'progress' ,
label : 'Provisioning' ,
label : 'Provisioning' ,
rawSteps : group
rawSteps : group ,
completed : false
} ) ;
} ) ;
} else {
} else {
// Skip unsupported steps (CONVERTER, INTEGRATION)
// Skip unsupported steps (CONVERTER, INTEGRATION)
@ -368,6 +373,7 @@ export class TbDeviceInstallDialogComponent implements OnInit {
// All done — report install
// All done — report install
ws . progressDone = true ;
ws . progressDone = true ;
ws . completed = true ;
try {
try {
await firstValueFrom (
await firstValueFrom (
this . data . iotHubApiService . reportVersionInstalled ( this . data . item . id as string , { ignoreLoading : true } )
this . data . iotHubApiService . reportVersionInstalled ( this . data . item . id as string , { ignoreLoading : true } )