This repository was archived by the owner on Aug 11, 2021. It is now read-only.
File tree 2 files changed +10
-6
lines changed
src/client/src/app/settings/rules
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 118
118
< div class ="control ">
119
119
< input class ="input has-width-auto is-small " type ="number " formControlName ="minimum "
120
120
[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 >
124
124
</ div >
125
125
</ div >
126
126
</ div >
129
129
< div class ="control ">
130
130
< input class ="input has-width-auto is-small " type ="number " formControlName ="maximum "
131
131
[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 >
135
135
</ div >
136
136
</ div >
137
137
</ div >
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ export class RulesComponent extends SettingsSection implements OnInit {
27
27
return this . formGroup ;
28
28
}
29
29
30
+ getRandomStartingItemsFormGroup ( ) : FormGroup {
31
+ return this . formGroup . controls . randomStartingItems as FormGroup ;
32
+ }
33
+
30
34
isArtifactCollectionSelected ( ) : boolean {
31
35
return this . formGroup . get ( 'goal' ) . value === this . ARTIFACT_COLLECTION ;
32
36
}
You can’t perform that action at this time.
0 commit comments