Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ <h5 class="card-title mb-0 label-header">Alerts rules</h5>
<app-utm-search-input [placeholder]="'Search rule'" (searchFor)="searchByRule($event)"></app-utm-search-input>

</div>
<div class="table-container">
<table class="table mb-0">
<thead>
<tr>
Expand All @@ -39,7 +40,7 @@ <h5 class="card-title mb-0 label-header">Alerts rules</h5>
Rule name
</th>
<th class="font-weight-semibold" id="des"
style="width: 35%">
style="width: 25%">
Description
</th>
<th class="font-weight-semibold" id="cond">
Expand All @@ -58,8 +59,7 @@ <h5 class="card-title mb-0 label-header">Alerts rules</h5>
[sortable]="'last_modified_by'" appColumnSortable>
Modified by
</th>
<th class="font-weight-semibold" id="thAction"
style="width: 15px">
<th class="font-weight-semibold" id="thAction">
Actions
</th>
</tr>
Expand All @@ -70,14 +70,14 @@ <h5 class="card-title mb-0 label-header">Alerts rules</h5>
<td (click)="viewRule=rule" class="cursor-pointer text-wrap" style="width: 35%"><p class="font-size-base">{{rule.description }}</p></td>
<td
class="text-blue-800 cursor-pointer" (click)="viewRule=rule">
<strong>{{rule.conditions.length }}</strong> {{rule.conditions.length > 1 ? 'conditions' : 'condition'}}</td>
<strong>{{rule.conditions.length }}</strong> {{rule.conditions.length &gt; 1 ? 'conditions' : 'condition'}}</td>
<td class="text-wrap tags-container text-break cursor-pointer "
(click)="viewRule=rule">
<app-alert-tag-label [tags]="rule.tags"></app-alert-tag-label>
</td>
<td (click)="viewRule=rule" class="cursor-pointer">{{rule.lastModifiedDate | date:'short' }}</td>
<td (click)="viewRule=rule" class="cursor-pointer">{{rule.createdBy }}</td>
<td style="width: 15px" class="text-center medium-icon">
<td class="text-center medium-icon">
<i (click)="editRuleAction(rule)"
class="icon-pencil3 utm-submenu-table-actions cursor-pointer mr-2"></i>
<i (click)="deleteRuleAction(rule)"
Expand Down Expand Up @@ -108,6 +108,7 @@ <h5 class="card-title mb-0 label-header">Alerts rules</h5>
</tr>
</tbody>
</table>
</div>
<div *ngIf="rules && rules.length" class="mb-4 mt-3">
<div class="row justify-content-center">
<ngb-pagination (pageChange)="loadPage($event)"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.table-container {
max-height: 67dvh;
overflow-y: auto;
}

table {
width: 100%;
table-layout: fixed;
border-collapse: collapse;
}

th,
.table-container th[appColumnSortable] {
position: sticky;
top: 0;
z-index: 1;
background: #fff;
}
Loading