Skip to content

Commit

Permalink
NAS-133205: Always auto start in virt instance creation (#11219)
Browse files Browse the repository at this point in the history
  • Loading branch information
undsoft authored Dec 23, 2024
1 parent 356e8d5 commit 7811590
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="container">
<form class="form" [formGroup]="form" (submit)="onSubmit()">
<ix-form-section
[label]="'Instance Configuration' | translate"
[label]="'Instance Configuration' | translate"
[help]="'Instance Configuration' | translate"
>
<ix-input
Expand All @@ -16,11 +16,6 @@
[required]="true"
></ix-input>

<ix-checkbox
formControlName="autostart"
[label]="'Autostart' | translate"
></ix-checkbox>

<div class="image-field">
<ix-input
class="input"
Expand Down Expand Up @@ -183,7 +178,7 @@
</ix-list>
</ix-form-section>

<ix-form-section
<ix-form-section
[label]="'Network' | translate"
[help]="'Network' | translate"
>
Expand Down Expand Up @@ -272,4 +267,4 @@
</div>
</form>
<ix-form-glossary class="glossary"></ix-form-glossary>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export class InstanceWizardComponent {

protected readonly form = this.formBuilder.nonNullable.group({
name: ['', Validators.required],
autostart: [false],
image: ['', Validators.required],
cpu: ['', [cpuValidator()]],
memory: [null as number],
Expand Down Expand Up @@ -246,9 +245,9 @@ export class InstanceWizardComponent {

return {
devices,
autostart: true,
name: this.form.controls.name.value,
cpu: this.form.controls.cpu.value,
autostart: this.form.controls.autostart.value,
memory: this.form.controls.memory.value,
image: this.form.controls.image.value,
environment: this.environmentVariablesPayload,
Expand Down
Loading

0 comments on commit 7811590

Please sign in to comment.