File

operations/bulk-operation-list-item/modals/bulk-operations-reschedule-modal.component.ts

Implements

OnInit

Metadata

Index

Properties
Methods

Constructor

constructor(bsModalRef: BsModalRef, bulkOperationsService: BulkOperationsService, alert: AlertService)
Parameters :
Name Type Optional
bsModalRef BsModalRef No
bulkOperationsService BulkOperationsService No
alert AlertService No

Methods

getTitle
getTitle()
Returns : any
ngOnInit
ngOnInit()
Returns : void
onCancel
onCancel()
Returns : void
onDateAndDelaySelect
onDateAndDelaySelect($event)
Parameters :
Name Optional
$event No
Returns : void
Async onSave
onSave()
Returns : any

Properties

Public bsModalRef
Type : BsModalRef
bulkOperation
Type : Partial<IOperationBulk>
closeSubject
Type : Subject<IOperationBulk>
Default value : new Subject()
dateAndDelay
Type : OperationSchedule
isRetryOperation
Type : boolean
modalTitle
Type : string
<div class="viewport-modal">
  <div class="modal-header dialog-header">
    <h1 class="c8y-icon c8y-icon-energy"></h1>
    <h4>{{ modalTitle | translate }}</h4>
  </div>
  <div class="modal-inner-scroll">
    <div class="modal-body">
      <div class="text-center">
        <c8y-operation-summary
          [description]="bulkOperation.operationPrototype.description"
        ></c8y-operation-summary>
      </div>
      <div class="p-t-16 center-block" style="max-width: 300px;">
        <c8y-operation-scheduler
          [(ngModel)]="dateAndDelay"
          #scheduler="ngModel"
        ></c8y-operation-scheduler>
      </div>
    </div>
  </div>
  <div class="modal-footer">
    <button
      (click)="onCancel()"
      type="button"
      class="btn btn-default"
      title="{{ 'Cancel' | translate }}"
    >
      <span translate>Cancel</span>
    </button>
    <button
      id="save-btn"
      (click)="onSave()"
      type="button"
      class="btn btn-primary"
      title="{{ 'Save' | translate }}"
      [disabled]="scheduler?.control?.errors"
    >
      <span translate>Save</span>
    </button>
  </div>
</div>

results matching ""

    No results matching ""