1 <cd-modal [modalRef]="activeModal">
2 <ng-container class="modal-title"
3 i18n>Reweight OSD: {{ osdId }}</ng-container>
5 <ng-container class="modal-content">
6 <form [formGroup]="reweightForm">
7 <div class="modal-body">
10 class="col-sm-2 col-form-label">Weight</label>
11 <div class="col-sm-10">
16 formControlName="weight"
19 [value]="currentWeight">
20 <span class="invalid-feedback"
21 *ngIf="weight.errors">
22 <span *ngIf="weight.errors?.required"
23 i18n>This field is required.</span>
24 <span *ngIf="weight.errors?.max || weight.errors?.min"
25 i18n>The value needs to be between 0 and 1.</span>
31 <div class="modal-footer">
32 <cd-submit-button (submitAction)="reweight()"
34 [disabled]="reweightForm.invalid"
35 i18n>Reweight</cd-submit-button>
36 <cd-back-button [back]="activeModal.close"