Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit ac4a379

Browse files
committed
Merge branch 'bugfix/rules-typescript-errors'
2 parents acd1c8a + 86de3a1 commit ac4a379

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/client/src/app/settings/rules/rules.component.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@
118118
<div class="control">
119119
<input class="input has-width-auto is-small" type="number" formControlName="minimum"
120120
[pTooltip]="DETAILS.randomStartingItems.items.minimum.description">
121-
<div *ngIf="getFormGroup().controls.randomStartingItems.controls.minimum.errors">
122-
<p class="help is-danger" *ngIf="getFormGroup().controls.randomStartingItems.controls.minimum.errors.min">Minimum count is 0.</p>
123-
<p class="help is-danger" *ngIf="getFormGroup().controls.randomStartingItems.controls.minimum.errors.max">Maximum count is 25.</p>
121+
<div *ngIf="getRandomStartingItemsFormGroup().controls.minimum.errors">
122+
<p class="help is-danger" *ngIf="getRandomStartingItemsFormGroup().controls.minimum.errors.min">Minimum count is 0.</p>
123+
<p class="help is-danger" *ngIf="getRandomStartingItemsFormGroup().controls.minimum.errors.max">Maximum count is 25.</p>
124124
</div>
125125
</div>
126126
</div>
@@ -129,9 +129,9 @@
129129
<div class="control">
130130
<input class="input has-width-auto is-small" type="number" formControlName="maximum"
131131
[pTooltip]="DETAILS.randomStartingItems.items.maximum.description">
132-
<div *ngIf="getFormGroup().controls.randomStartingItems.controls.maximum.errors">
133-
<p class="help is-danger" *ngIf="getFormGroup().controls.randomStartingItems.controls.maximum.errors.min">Minimum count is 0.</p>
134-
<p class="help is-danger" *ngIf="getFormGroup().controls.randomStartingItems.controls.maximum.errors.max">Maximum count is 25.</p>
132+
<div *ngIf="getRandomStartingItemsFormGroup().controls.maximum.errors">
133+
<p class="help is-danger" *ngIf="getRandomStartingItemsFormGroup().controls.maximum.errors.min">Minimum count is 0.</p>
134+
<p class="help is-danger" *ngIf="getRandomStartingItemsFormGroup().controls.maximum.errors.max">Maximum count is 25.</p>
135135
</div>
136136
</div>
137137
</div>

src/client/src/app/settings/rules/rules.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ export class RulesComponent extends SettingsSection implements OnInit {
2727
return this.formGroup;
2828
}
2929

30+
getRandomStartingItemsFormGroup(): FormGroup {
31+
return this.formGroup.controls.randomStartingItems as FormGroup;
32+
}
33+
3034
isArtifactCollectionSelected(): boolean {
3135
return this.formGroup.get('goal').value === this.ARTIFACT_COLLECTION;
3236
}

0 commit comments

Comments
 (0)