]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/blob
8c629d76836de2e2c1ab4a7bfee4a013545aa92f
[ceph-ci.git] /
1 <ng-container *ngIf="gatewayGroup$ | async as gateways">
2   <cd-table
3     #table
4     [data]="gateways"
5     [columns]="columns"
6     columnMode="flex"
7     selectionType="single"
8     identifier="name"
9     (updateSelection)="updateSelection($event)"
10     (fetchData)="fetchData()"
11     emptyStateTitle="No gateway group created"
12     i18n-emptyStateTitle
13     emptyStateMessage="Set up your first gateway group to start using NVMe over Fabrics. This will allow you to create high-performance block storage with NVMe/TCP protocol."
14     i18n-emptyStateMessage>
15   <cd-table-actions class="table-actions"
16                     [permission]="permission"
17                     [selection]="selection"
18                     [tableActions]="tableActions">
19   </cd-table-actions>
20   </cd-table>
21 </ng-container>
22
23 <ng-template #dateTpl
24              let-created="data.value">
25   <span *ngIf="created">{{ created | date:'EEE d MMM, yyyy' }}</span>
26 </ng-template>
27
28 <ng-template #gatewayStatusTpl
29              let-gateway="data.value">
30   <div [cdsStack]="'horizontal'"
31        gap="4">
32
33     @if (gateway.running > 0) {
34     <span [ngClass]="gateway.error > 0 ? 'cds-mr-3' : ''">
35       <cd-icon type="success"></cd-icon>
36       <span class="cds-ml-3">{{ gateway.running }}</span>
37     </span>
38     }
39
40     @if (gateway.error > 0) {
41     <span>
42       <cd-icon type="error"></cd-icon>
43       <span class="cds-ml-3">{{ gateway.error }}</span>
44     </span>
45     }
46   </div>
47 </ng-template>
48 <ng-template #deleteTpl
49              let-groupName="groupName"
50              let-subsystemCount="subsystemCount">
51   @if (subsystemCount > 0) {
52   <cd-alert-panel type="warning"
53                   spacingClass="cds-mb-3">
54     <h1 class="cds--type-heading-compact-01"
55         i18n>Cannot delete gateway group</h1>
56     <p class="cds--type-body-compact-01"
57        i18n>This gateway group includes dependent NVMe-oF resources. Remove the associated initiators and gateway targets before proceeding with deletion.</p>
58   </cd-alert-panel>
59   }
60 </ng-template>