Skip to content

Commit

Permalink
[DSC-1405] Fix issue with checkbox selection
Browse files Browse the repository at this point in the history
  • Loading branch information
atarix83 committed Nov 27, 2023
1 parent 1d8426d commit e274d96
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ <h4 class="modal-title">{{'subscriptions.modal.title' | translate}}</h4>
<div class="col-md-8">
<input type="hidden" formControlName="subscriptionId" [value]="subscriptionType?.value?.controls['subscriptionId'].value" >
<div class="form-check" formGroupName="frequencies" *ngFor="let frequency of frequencyDefaultValues">
<input type="checkbox" [id]="'checkbox-' + frequency" class="form-check-input" [formControlName]="frequency"/>
<input type="checkbox" [id]="'checkbox-' + subscriptionType.key + frequency" class="form-check-input" [formControlName]="frequency"/>
<label class="form-check-label"
[for]="'checkbox-' + frequency">{{ 'subscriptions.modal.new-subscription-form.frequency.' + frequency | translate }}</label>
[for]="'checkbox-' + subscriptionType.key + frequency">{{ 'subscriptions.modal.new-subscription-form.frequency.' + frequency | translate }}</label>
</div>
</div>
<ds-alert *ngIf="!!submitted && subscriptionType?.value?.controls['frequencies'].errors?.required" [type]="'alert-danger'">
Expand Down

0 comments on commit e274d96

Please sign in to comment.