]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/blob
b035a1a22aaaa303600473cdc1f7b3dc6d8830c2
[ceph-ci.git] /
1   <fieldset>
2     <legend i18n
3             class="cd-header">
4     Notification Configuration
5     <cd-help-text>
6        Configure bucket notification to trigger alerts for specific events, such as object creation or transitions, based on prefixes or tags.
7     </cd-help-text>
8   </legend>
9   </fieldset>
10   <ng-container *ngIf="notification$ | async as notification">
11   <cd-table #table
12             [data]="notification"
13             [columns]="columns"
14             columnMode="flex"
15             selectionType="single"
16             identifier="Id"
17             (fetchData)="fetchData()">
18   </cd-table>
19   </ng-container>
20   <ng-template #filterTpl
21                let-config="data.value">
22     <ng-container *ngIf="config">
23       <ng-container *ngFor="let item of config | keyvalue">
24         <ng-container *ngIf="item.value?.FilterRule?.length">
25           <div class="cds--label">
26             {{ item.key }}:
27           </div>
28           <div [cdsStack]="'horizontal'"
29                *ngFor="let rule of item.value.FilterRule">
30             <cds-tag size="sm"
31                      class="badge-background-gray">{{ rule.Name }}: {{ rule.Value }}</cds-tag>
32           </div>
33           <br>
34         </ng-container>
35       </ng-container>
36     </ng-container>
37   </ng-template>
38   <ng-template #eventTpl
39                let-event="data.value">
40     <ng-container *ngIf="event">
41       <cds-tag size="sm"
42                class="badge-background-primary">
43       {{ event }}
44       </cds-tag>
45     </ng-container>
46   </ng-template>