All files / src/app/ceph/cluster/osd/osd-flags-modal osd-flags-modal.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 457x                                                                                        
<cd-modal [modalRef]="bsModalRef">
  <ng-container class="modal-title"
                i18n>Cluster-wide OSD Flags</ng-container>
 
  <ng-container class="modal-content">
    <form name="osdFlagsForm"
          #formDir="ngForm"
          [formGroup]="osdFlagsForm"
          novalidate>
      <div class="modal-body osd-modal">
        <div class="checkbox checkbox-primary"
             *ngFor="let flag of flags; let last = last">
          <input type="checkbox"
                 [checked]="flag.value"
                 (change)="flag.value = !flag.value"
                 [name]="flag.code"
                 [id]="flag.code"
                 [disabled]="flag.disabled">
          <label [for]="flag.code"
                 ng-class="['tc_' + key]">
            <strong>{{ flag.name }}</strong>
            <br>
            <span class="text-muted">{{ flag.description }}</span>
          </label>
          <hr class="oa-hr-small"
              *ngIf="!last">
        </div>
      </div>
 
      <div class="modal-footer">
        <div class="button-group text-right">
          <cd-submit-button *ngIf="permissions.osd.update"
                            (submitAction)="submitAction()"
                            [form]="osdFlagsForm"
                            i18n>Submit</cd-submit-button>
          <cd-back-button [back]="bsModalRef.hide"
                          name="Cancel"
                          i18n-name>
          </cd-back-button>
        </div>
      </div>
    </form>
  </ng-container>
</cd-modal>