|
1 | | -<div class="query-container"> |
2 | | - <app-utm-compliance-query-form *ngIf="editingIndex === null" |
3 | | - (add)="onQueryAdd($event)" |
4 | | - [indexPatterns]="patterns" |
5 | | - [indexPatternNames]="indexPatternNames"> |
6 | | - </app-utm-compliance-query-form> |
| 1 | +<app-utm-compliance-query *ngIf="editingIndex === null" |
| 2 | + (add)="onQueryAdd($event)" |
| 3 | + [indexPatterns]="patterns" |
| 4 | + [indexPatternNames]="indexPatternNames"> |
| 5 | +</app-utm-compliance-query> |
7 | 6 |
|
8 | | - <app-utm-compliance-query-form *ngIf="editingIndex !== null" |
9 | | - [query]="queries[editingIndex]" |
10 | | - (add)="onQueryAdd($event)" |
11 | | - [indexPatterns]="patterns" |
12 | | - [indexPatternNames]="indexPatternNames" |
13 | | - (cancel)="cancelEdit()"> |
14 | | - </app-utm-compliance-query-form> |
| 7 | +<app-utm-compliance-query *ngIf="editingIndex !== null" |
| 8 | + [query]="queries[editingIndex]" |
| 9 | + (add)="onQueryAdd($event)" |
| 10 | + [indexPatterns]="patterns" |
| 11 | + [indexPatternNames]="indexPatternNames" |
| 12 | + (cancel)="cancelEdit()"> |
| 13 | +</app-utm-compliance-query> |
15 | 14 |
|
16 | | - <div class="table-responsive w-100"> |
17 | | - <table class="table text-nowrap"> |
18 | | - <thead> |
19 | | - <tr> |
20 | | - <th class="text-center font-weight-semibold">Query Name</th> |
21 | | - <th class="text-center font-weight-semibold">SQL Query</th> |
22 | | - <th class="text-center font-weight-semibold">Evaluation Rule</th> |
23 | | - <th class="text-center font-weight-semibold">Index Pattern</th> |
24 | | - <th class="text-center font-weight-semibold text-right">Actions</th> |
25 | | - </tr> |
26 | | - </thead> |
| 15 | +<div class="table-responsive w-100"> |
| 16 | + <table class="table text-nowrap"> |
| 17 | + <thead> |
| 18 | + <tr> |
| 19 | + <th class="text-center font-weight-semibold">Query Name</th> |
| 20 | + <th class="text-center font-weight-semibold">SQL Query</th> |
| 21 | + <th class="text-center font-weight-semibold">Evaluation Rule</th> |
| 22 | + <th class="text-center font-weight-semibold">Index Pattern</th> |
| 23 | + <th class="text-center font-weight-semibold text-right">Actions</th> |
| 24 | + </tr> |
| 25 | + </thead> |
27 | 26 |
|
28 | | - <tbody> |
29 | | - <ng-container *ngIf="queries && queries.length > 0; else noData"> |
30 | | - <tr *ngFor="let q of queries; let i = index"> |
31 | | - <td class="text-center pr-0 pl-0"> |
32 | | - {{ q.queryName | slice:0:30 }}{{ q.queryName.length > 30 ? '…' : '' }} |
33 | | - </td> |
34 | | - <td class="text-center pr-0 pl-0"> |
35 | | - {{ q.sqlQuery | slice:0:30 }}{{ q.sqlQuery.length > 30 ? '…' : '' }} |
36 | | - </td> |
37 | | - <td class="text-center pr-0 pl-0">{{ q.evaluationRule }}</td> |
38 | | - <td class="text-center pr-0 pl-0">{{ getIndexPatternName(q.indexPatternId) }}</td> |
39 | | - |
40 | | - <td class="td-action"> |
41 | | - <div class="d-flex justify-content-end align-items-center medium-icon"> |
42 | | - <i (click)="startEdit(i)" |
43 | | - class="icon-pencil3 cursor-pointer mr-3" |
44 | | - ngbTooltip="Edit visualization" |
45 | | - tooltipClass="utm-tooltip-top"></i> |
| 27 | + <tbody> |
| 28 | + <ng-container *ngIf="queries && queries.length > 0; else noData"> |
| 29 | + <tr *ngFor="let q of queries; let i = index"> |
| 30 | + <td class="text-center pr-0 pl-0"> |
| 31 | + {{ q.queryName | slice:0:30 }}{{ q.queryName.length > 30 ? '…' : '' }} |
| 32 | + </td> |
| 33 | + <td class="text-center pr-0 pl-0"> |
| 34 | + {{ q.sqlQuery | slice:0:30 }}{{ q.sqlQuery.length > 30 ? '…' : '' }} |
| 35 | + </td> |
| 36 | + <td class="text-center pr-0 pl-0">{{ q.evaluationRule }}</td> |
| 37 | + <td class="text-center pr-0 pl-0">{{ getIndexPatternName(q.indexPatternId) }}</td> |
46 | 38 |
|
47 | | - <i (click)="onRemove(i)" |
48 | | - class="icon-cross2 cursor-pointer" |
49 | | - ngbTooltip="Delete visualization" |
50 | | - placement="left" |
51 | | - tooltipClass="utm-tooltip"></i> |
52 | | - </div> |
53 | | - </td> |
54 | | - </tr> |
55 | | - </ng-container> |
| 39 | + <td class="td-action"> |
| 40 | + <div class="d-flex justify-content-end align-items-center medium-icon"> |
| 41 | + <i (click)="startEdit(i)" |
| 42 | + class="icon-pencil3 cursor-pointer mr-3" |
| 43 | + ngbTooltip="Edit visualization" |
| 44 | + tooltipClass="utm-tooltip-top"></i> |
56 | 45 |
|
57 | | - <ng-template #noData> |
58 | | - <td colspan="5"> |
59 | | - <app-no-data-found></app-no-data-found> |
| 46 | + <i (click)="onRemove(i)" |
| 47 | + class="icon-cross2 cursor-pointer" |
| 48 | + ngbTooltip="Delete visualization" |
| 49 | + placement="left" |
| 50 | + tooltipClass="utm-tooltip"></i> |
| 51 | + </div> |
60 | 52 | </td> |
61 | | - </ng-template> |
62 | | - </tbody> |
63 | | - </table> |
64 | | - </div> |
| 53 | + </tr> |
| 54 | + </ng-container> |
| 55 | + |
| 56 | + <ng-template #noData> |
| 57 | + <td colspan="5"> |
| 58 | + <app-no-data-found></app-no-data-found> |
| 59 | + </td> |
| 60 | + </ng-template> |
| 61 | + </tbody> |
| 62 | + </table> |
65 | 63 | </div> |
0 commit comments