Skip to content

Commit

Permalink
NAS-123284 / 24.04 / Unable to add spares in new Pool Creation Wizard (
Browse files Browse the repository at this point in the history
…#8563)

* NAS-123284: Fix pool creation bug

* NAS-123284: Revert "NAS-226: Fix pool creation bug"

* NAS-123284: Fix pool update bug

---------

Co-authored-by: Boris Vasilenko <bvasilenko@ixsystems.com>
  • Loading branch information
bvasilenko and Boris Vasilenko authored Aug 13, 2023
1 parent 78fb64a commit f9a9151
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class AutomatedDiskSelectionComponent implements OnInit, OnChanges {

resetToDefaults(): void {
this.form.reset({
layout: null,
layout: this.canChangeLayout ? null : this.limitLayouts[0],
sizeAndType: [null, null],
width: null,
treatDiskSizeAsMinimum: false,
Expand Down Expand Up @@ -234,7 +234,7 @@ export class AutomatedDiskSelectionComponent implements OnInit, OnChanges {

const isValueNull = this.form.controls.layout.value === null;
if (!isValueNull && !layoutOptions.some((option) => option.value === this.form.controls.layout.value)) {
this.form.controls.layout.setValue(null, { emitEvent: false });
this.form.controls.layout.setValue(this.canChangeLayout ? null : this.limitLayouts[0], { emitEvent: false });
}
this.store.getLayoutsForVdevType(this.type)
.pipe(
Expand Down

0 comments on commit f9a9151

Please sign in to comment.