<ng-template #criticalConfirmationTpl
let-safeToPerform="safeToPerform"
let-message="message"
- let-actionDescription="actionDescription">
+ let-actionDescription="actionDescription"
+ let-osdIds="osdIds">
<div *ngIf="!safeToPerform"
class="danger">
<cd-alert-panel type="warning"
- i18n>The {selection.hasSingleSelection, select, 1 {OSD is} 0 {OSDs are}} not safe to be {{ actionDescription }}! {{ message }}</cd-alert-panel>
+ i18n>The {selection.hasSingleSelection, select, true {OSD is} false {OSDs are}} not safe to be
+ {{ actionDescription }}! {{ message }}</cd-alert-panel>
</div>
- <ng-container i18n><strong>OSD {{ getSelectedOsdIds() | join }}</strong> will be
-<strong>{{ actionDescription }}</strong> if you proceed.</ng-container>
+ <ng-container i18n><strong>OSD {{ osdIds | join }}</strong> will be
+ <strong>{{ actionDescription }}</strong> if you proceed.</ng-container>
</ng-template>
<ng-template #deleteOsdExtraTpl
reweightBodyTpl: TemplateRef<any>;
@ViewChild('safeToDestroyBodyTpl', { static: false })
safeToDestroyBodyTpl: TemplateRef<any>;
- @ViewChild('deleteOsdExtraTpl')
+ @ViewChild('deleteOsdExtraTpl', { static: false })
deleteOsdExtraTpl: TemplateRef<any>;
permissions: Permissions;
bodyContext: {
safeToPerform: result[checkKey],
message: result.message,
- actionDescription: templateItemDescription
+ actionDescription: templateItemDescription,
+ osdIds: this.getSelectedOsdIds()
},
childFormGroup: childFormGroup,
childFormGroupTemplate: childFormGroupTemplate,