From ccd1830da92783e31c4c466d33a6e6f5062c735c Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Mon, 3 Feb 2025 09:03:26 -0500 Subject: [PATCH] talkgroup pipe share wip --- client/stillbox/src/app/calls/calls.service.ts | 3 ++- .../src/app/incidents/incident/incident.component.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/stillbox/src/app/calls/calls.service.ts b/client/stillbox/src/app/calls/calls.service.ts index 89cd8fc..19e7bc8 100644 --- a/client/stillbox/src/app/calls/calls.service.ts +++ b/client/stillbox/src/app/calls/calls.service.ts @@ -5,6 +5,7 @@ import { CallRecord } from '../calls'; import { environment } from '.././../environments/environment'; import { TalkgroupService } from '../talkgroups/talkgroups.service'; import { Talkgroup } from '../talkgroup'; +import { Share } from '../shares'; @Pipe({ name: 'grabDate', @@ -42,7 +43,7 @@ export class TimePipe implements PipeTransform { export class TalkgroupPipe implements PipeTransform { constructor(private tgService: TalkgroupService) {} - transform(call: CallRecord, field: string): Observable { + transform(call: CallRecord, field: string, share: Share|null = null): Observable { return this.tgService.getTalkgroup(call.system_id, call.tgid).pipe( map((tg: Talkgroup) => { switch (field) { diff --git a/client/stillbox/src/app/incidents/incident/incident.component.html b/client/stillbox/src/app/incidents/incident/incident.component.html index e9b8612..0e07b87 100644 --- a/client/stillbox/src/app/incidents/incident/incident.component.html +++ b/client/stillbox/src/app/incidents/incident/incident.component.html @@ -76,13 +76,13 @@ System - {{ call | talkgroup: "system" | async }} + {{ call | talkgroup: "system":incident | async }} Group - {{ call | talkgroup: "group" | async }} + {{ call | talkgroup: "group":incident | async }}