operations/stepper-bulk-type-firmware/stepper-bulk-type-firmware.component.ts
selector | c8y-stepper-firmware |
templateUrl | stepper-bulk-type-firmware.component.html |
Properties |
Methods |
constructor(bulkOperationService: BulkOperationsService, translate: TranslateService)
|
|||||||||
Parameters :
|
goToVersionOrPatchStep | |||
goToVersionOrPatchStep(undefined)
|
|||
Parameters :
Returns :
void
|
ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|
onFirmwareSelected | ||||||
onFirmwareSelected(fw: IManagedObject)
|
||||||
Parameters :
Returns :
void
|
Protected onSelectionChange | ||||||
onSelectionChange(event: StepperSelectionEvent)
|
||||||
Parameters :
Returns :
void
|
onVersionOrPatchSelected | ||||||
onVersionOrPatchSelected(versionOrPatch: IManagedObject)
|
||||||
Parameters :
Returns :
void
|
Protected retrieveOperationPrototype |
retrieveOperationPrototype()
|
Returns :
OperationDetails
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
Readonly descriptionTemplate |
Type : string
|
Default value : gettext('{{ name }} (version {{ version }})')
|
selectedFirmware |
Type : IManagedObject
|
selectedVersionOrPatch |
Type : IManagedObject
|
stepData |
Type : literal type
|
Default value : {
firmware: undefined,
versionOrPatch: undefined
}
|
textFilter$ |
Type : BehaviorSubject<string>
|
Default value : new BehaviorSubject('')
|
operationStepper |
Type : BulkOperationStepper
|
Decorators :
@ViewChild(BulkOperationStepper, {static: true})
|
<c8y-bulk-operation-stepper>
<ng-container
*customStep="
'Select firmware' | translate;
completed: !!stepData?.firmware;
buttonsDisabled: !stepData?.firmware;
onNext: goToVersionOrPatchStep.bind(this)
"
>
<c8y-select-firmware-step
[selected]="stepData?.firmware"
(firmware)="onFirmwareSelected($event)"
class="d-contents"
></c8y-select-firmware-step
></ng-container>
<ng-container
*customStep="
'Select version or patch' | translate;
completed: !!stepData?.versionOrPatch;
buttonsDisabled: !stepData?.versionOrPatch
"
>
<c8y-preview-selection-frame
[header]="'Select version or patch' | translate"
[name]="stepData?.firmware?.name"
[description]="stepData?.firmware?.description"
>
<c8y-version-or-patch-step
list
[selected]="stepData?.versionOrPatch"
(versionOrPatch)="onVersionOrPatchSelected($event)"
>
</c8y-version-or-patch-step>
</c8y-preview-selection-frame>
</ng-container>
</c8y-bulk-operation-stepper>