Save patch infomation for calls.

This commit is contained in:
Tad Smith
2024-12-13 20:46:06 +00:00
parent 29d72525bd
commit 350c83c259
4 changed files with 33 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ function CallInfoPane(props) {
let callDate = "-";
let callTime = "-";
let talkgroupNum = "-";
let patches = [];
let patchString = "";
let header = "Call Info"
let title = ""
const currentCall = props.call ? props.call : false;
@@ -51,6 +53,14 @@ function CallInfoPane(props) {
srcList = currentCall.srcList.map((source, index) => <List.Item key={index}>{source.src}[{source.pos}]</List.Item>);
callLength = currentCall.len;
talkgroupNum = currentCall.talkgroupNum;
patches = currentCall.patches;
if(patches.length > 1) {
patchString = patches.join(", ");
}
else{
patchString = "No Patches";
}
}
let system = false;
@@ -102,7 +112,6 @@ function CallInfoPane(props) {
<Statistic.Label>Talkgroup</Statistic.Label>
<Statistic.Value>{talkgroupNum}</Statistic.Value>
</Statistic>
<List divided verticalAlign='middle'>
<List.Item>
<Icon name="wait" />
@@ -122,6 +131,12 @@ function CallInfoPane(props) {
{callFreq} MHz
</List.Content>
</List.Item>
<List.Item>
<Icon name="exchange" />
<List.Content>
{patchString}
</List.Content>
</List.Item>
</List>
<Divider />
<Menu secondary fluid widths={2}>