1 <cd-modal [modalRef]="activeModal">
2 <ng-container class="modal-title"
3 i18n>{{ deviceType }} devices</ng-container>
5 <ng-container class="modal-content">
7 [formGroup]="formGroup"
9 <div class="modal-body">
10 <cd-alert-panel *ngIf="!canSubmit"
14 <ng-container i18n>At least one of these filters must be applied in order to proceed:</ng-container>
15 <span *ngFor="let filter of requiredFilters"
16 class="badge badge-dark ml-2">
20 <cd-inventory-devices #inventoryDevices
22 [filterColumns]="filterColumns"
23 [hiddenColumns]="['available', 'osd_ids']"
24 (filterChange)="onFilterChange($event)">
25 </cd-inventory-devices>
26 <div *ngIf="canSubmit">
27 <p class="text-center">
28 <span i18n>Number of devices: {{ filteredDevices.length }}. Raw capacity:
29 {{ capacity | dimlessBinary }}.</span>
33 <div class="modal-footer">
34 <cd-form-button-panel (submitActionEvent)="onSubmit()"
36 [disabled]="!canSubmit || filteredDevices.length === 0"
37 [submitText]="action | titlecase"></cd-form-button-panel>