type="error">
{{errorMessage}}
</cd-alert-panel>
- <div class="form-group">
- <div class="custom-control custom-checkbox">
- <input type="checkbox"
- class="custom-control-input"
- name="retainSnapshots"
- id="retainSnapshots"
- formControlName="retainSnapshots">
- <label class="custom-control-label"
- for="retainSnapshots"
- i18n>Retain snapshots <cd-helper>The subvolume can be removed retaining
+ <div class="form-item cds-pt-3">
+ <cds-checkbox id="retainSnapshots"
+ formControlName="retainSnapshots"
+ autofocus
+ [required]="true"
+ modal-primary-focus
+ ariaLabel="confirmation"
+ i18n>Retain snapshots
+ <cd-help-text>The subvolume can be removed retaining
existing snapshots using this option.
If snapshots are retained, the subvolume is considered empty for all
- operations not involving the retained snapshots.</cd-helper></label>
- </div>
+ operations not involving the retained snapshots.</cd-help-text>
+ </cds-checkbox>
</div>
</ng-container>
</ng-container>
let-form="form">
<ng-container [formGroup]="form">
<ng-container formGroupName="child">
- <div class="form-group">
- <div class="custom-control custom-checkbox">
- <input type="checkbox"
- class="custom-control-input"
- name="preserve"
- id="preserve"
- formControlName="preserve">
- <label class="custom-control-label"
- for="preserve"
- i18n>Preserve OSD ID(s) for replacement.</label>
- </div>
+ <div class="form-item cds-pt-3">
+ <cds-checkbox id="preserve"
+ formControlName="preserve"
+ modal-primary-focus
+ ariaLabel="preserve"
+ i18n>Preserve OSD ID(s) for replacement.</cds-checkbox>
</div>
</ng-container>
</ng-container>
submitButton: SubmitButtonComponent;
deletionForm: CdFormGroup;
impactEnum = DeletionImpact;
- childFormGroup: CdFormGroup;
- childFormGroupTemplate: TemplateRef<any>;
submitDisabled$: Observable<boolean> = of(false);
constructor(
@Optional() @Inject('impact') public impact: DeletionImpact,
@Optional()
@Inject('callBackAtionObservable')
public callBackAtionObservable?: () => Observable<any>,
- @Optional() @Inject('hideDefaultWarning') public hideDefaultWarning?: boolean
+ @Optional() @Inject('hideDefaultWarning') public hideDefaultWarning?: boolean,
+ @Optional() @Inject('childFormGroup') public childFormGroup?: CdFormGroup,
+ @Optional() @Inject('childFormGroupTemplate') public childFormGroupTemplate?: TemplateRef<any>
) {
super();
this.actionDescription = actionDescription || 'delete';