# All files / src/app/ceph/cluster/hosts hosts.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
    366x

     <tabset>
      <tab i18n-heading
           heading="Hosts List">
        <cd-table [data]="hosts"
                  [columns]="columns"
                  columnMode="flex"
                  (fetchData)="getHosts($event)"
                  selectionType="single"
                  (updateSelection)="updateSelection($event)">
          <ng-template #servicesTpl let-value="value">
            <span *ngFor="let service of value; last as isLast">
              <a [routerLink]="[service.cdLink]"
                 [queryParams]="cdParams"
                 *ngIf="service.canRead">{{ service.type }}.{{ service.id }}
              </a>
              <span *ngIf="!service.canRead">
                {{ service.type }}.{{ service.id }}
              </span>
              {{ !isLast ? ", " : "" }}
            </span>
          </ng-template>
          <cd-host-details cdTableDetail
                           [selection]="selection">
          </cd-host-details>
        </cd-table>
      </tab>
      <tab i18n-heading
           *ngIf="permissions.grafana.read"
           heading="Overall Performance">
        <cd-grafana [grafanaPath]="'host-overview?'"
                    uid="lxnjcTAmk"
                    grafanaStyle="two">
        </cd-grafana>
      </tab>
    </tabset>