Highlight incident UI
This commit is contained in:
parent
db5e6e7ad8
commit
b68ba4872e
4 changed files with 10 additions and 4 deletions
|
@ -4,6 +4,5 @@ export interface CallRecord {
|
||||||
duration: number;
|
duration: number;
|
||||||
system_id: number;
|
system_id: number;
|
||||||
tgid: number;
|
tgid: number;
|
||||||
system_name: string;
|
incidents: number; // in incident
|
||||||
tg_name: string;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
</td>
|
</td>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<tr mat-header-row *matHeaderRowDef="columns; sticky: true"></tr>
|
<tr mat-header-row *matHeaderRowDef="columns; sticky: true"></tr>
|
||||||
<tr mat-row *matRowDef="let myRowData; columns: columns"></tr>
|
<tr mat-row *matRowDef="let row; columns: columns" [ngClass]="{'in-incident': row.incidents > 0}"></tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="pagFoot">
|
<div class="pagFoot">
|
||||||
|
|
|
@ -96,3 +96,7 @@ form {
|
||||||
.tagSelect {
|
.tagSelect {
|
||||||
flex: 1 1 250px;
|
flex: 1 1 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.in-incident {
|
||||||
|
background-color: rgb(59, 0, 59);
|
||||||
|
}
|
||||||
|
|
|
@ -391,7 +391,10 @@ export class CallsComponent {
|
||||||
}
|
}
|
||||||
this.incSvc
|
this.incSvc
|
||||||
.addRemoveCalls(res, <CallIncidentParams>{
|
.addRemoveCalls(res, <CallIncidentParams>{
|
||||||
add: this.selection.selected.map((s) => s.id),
|
add: this.selection.selected.map((s, i, a) => {
|
||||||
|
s.incidents++;
|
||||||
|
return s.id;
|
||||||
|
}),
|
||||||
})
|
})
|
||||||
.subscribe({
|
.subscribe({
|
||||||
next: () => {
|
next: () => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue