Skip to content

Commit

Permalink
NAS-123450: New Pool Creation wizard - multiple enclosures button sta…
Browse files Browse the repository at this point in the history
…tes incorrect (#8566)
  • Loading branch information
AlexKarpov98 authored Aug 10, 2023
1 parent ffafd87 commit 6bb6f84
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
ChangeDetectionStrategy, Component, Input, OnChanges, OnInit,
ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnChanges, OnInit,
} from '@angular/core';
import { FormBuilder, Validators } from '@angular/forms';
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
Expand Down Expand Up @@ -64,6 +64,7 @@ export class EnclosureWizardStepComponent implements OnInit, OnChanges {
private store: PoolManagerStore,
private translate: TranslateService,
private formBuilder: FormBuilder,
private cdr: ChangeDetectorRef,
) {}

get isLimitingToSingle(): boolean {
Expand All @@ -79,6 +80,7 @@ export class EnclosureWizardStepComponent implements OnInit, OnChanges {
tap(() => {
this.form.controls.limitToEnclosure.removeValidators(Validators.required);
this.form.controls.limitToEnclosure.setValue(null);
this.cdr.markForCheck();
}),
).pipe(untilDestroyed(this)).subscribe();

Expand Down

0 comments on commit 6bb6f84

Please sign in to comment.