File

operations/stepper-bulk-type-firmware/stepper-bulk-type-firmware.component.ts

Extends

BaseStepperComponent

Implements

OnDestroy

Metadata

Index

Properties
Methods

Constructor

constructor(bulkOperationService: BulkOperationsService, translate: TranslateService)
Parameters :
Name Type Optional
bulkOperationService BulkOperationsService No
translate TranslateService No

Methods

goToVersionOrPatchStep
goToVersionOrPatchStep(undefined)
Parameters :
Name Optional
No
Returns : void
ngOnDestroy
ngOnDestroy()
Returns : void
onFirmwareSelected
onFirmwareSelected(fw: IManagedObject)
Parameters :
Name Type Optional
fw IManagedObject No
Returns : void
Protected onSelectionChange
onSelectionChange(event: StepperSelectionEvent)
Parameters :
Name Type Optional
event StepperSelectionEvent No
Returns : void
onVersionOrPatchSelected
onVersionOrPatchSelected(versionOrPatch: IManagedObject)
Parameters :
Name Type Optional
versionOrPatch IManagedObject No
Returns : void
Protected retrieveOperationPrototype
retrieveOperationPrototype()
Returns : OperationDetails
ngOnInit
ngOnInit()
Returns : void

Properties

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>

results matching ""

    No results matching ""