# All files / src/app/ceph/block/iscsi-target-list iscsi-target-list.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
    45
    46
    47
    483x

     <cd-iscsi-tabs></cd-iscsi-tabs>

    <cd-info-panel *ngIf="available === false"
                   title="iSCSI Targets not available"
                   i18n-title>
      <ng-container i18n>Please consult the <a href="{{docsUrl}}"
           target="_blank">documentation</a>
        on how to configure and enable the iSCSI Targets management functionality.</ng-container>

      <ng-container *ngIf="status">
        <br>
        <span i18n>Available information:</span>
        <pre>{{ status }}</pre>
      </ng-container>
    </cd-info-panel>

    <cd-table #table
              *ngIf="available === true"
              [data]="targets"
              columnMode="flex"
              [columns]="columns"
              identifier="target_iqn"
              forceIdentifier="true"
              selectionType="single"
              (updateSelection)="updateSelection($event)">
      <div class="table-actions btn-toolbar">
        <cd-table-actions class="btn-group"
                          [permission]="permissions.iscsi"
                          [selection]="selection"
                          [tableActions]="tableActions">
        </cd-table-actions>

        <button class="btn btn-sm btn-default btn-label"
                type="button"
                (click)="configureDiscoveryAuth()">
          <i class="fa fa-fw fa-key-modern"
             aria-hidden="true">
          </i>
          <ng-container i18n>Set discovery authentication</ng-container>
        </button>
      </div>

      <cd-iscsi-target-details cdTableDetail
                               *ngIf="selection.hasSingleSelection"
                               [selection]="selection"
                               [settings]="settings"></cd-iscsi-target-details>
    </cd-table>