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 [showAvailDeviceOnly]=
"true"
24 [hiddenColumns]=
"['available', 'osd_ids']"
25 (filterChange)=
"onFilterChange($event)">
26 </cd-inventory-devices>
27 <div *
ngIf=
"canSubmit">
28 <p class=
"text-center">
29 <span i18n
>Number of devices: {{ filteredDevices.length }}. Raw capacity:
30 {{ capacity | dimlessBinary }}.
</span>
34 <div class=
"modal-footer">
35 <cd-form-button-panel (submitActionEvent)=
"onSubmit()"
37 [disabled]=
"!canSubmit || filteredDevices.length === 0"
38 [submitText]=
"action | titlecase"></cd-form-button-panel>