Skip to content

Commit

Permalink
Merge pull request #19 from jarradraumati/18-add-confrev-table
Browse files Browse the repository at this point in the history
feat: add confRev to table
  • Loading branch information
danyill authored Apr 11, 2024
2 parents 9daa65e + 2041a8b commit 147357f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions oscd-tp-multicast-naming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ type AddressItem = {
appId: string;
vlanPriority: string;
vlanId: string;
confRev: string;
minTime: string;
maxTime: string;
controlIdentity: string;
Expand Down Expand Up @@ -737,6 +738,7 @@ export default class TPMulticastNaming extends LitElement {
vlanPriority:
address?.querySelector('Address > P[type="VLAN-PRIORITY"]')
?.textContent ?? '',
confRev: control.getAttribute('confRev') ?? '',
minTime: address?.querySelector('MinTime')?.textContent ?? '',
maxTime: address?.querySelector('MaxTime')?.textContent ?? '',
controlIdentity: `${identity(control)}`,
Expand Down Expand Up @@ -875,6 +877,12 @@ export default class TPMulticastNaming extends LitElement {
header="VLAN Priority"
width="40px"
></vaadin-grid-filter-column>
<vaadin-grid-filter-column
id="confRev"
path="confRev"
header="Config Rev"
width="40px"
></vaadin-grid-filter-column>
<vaadin-grid-filter-column
id="minTime"
path="minTime"
Expand Down Expand Up @@ -1378,6 +1386,7 @@ export default class TPMulticastNaming extends LitElement {
'VLAN Priority',
'Min Time',
'Max Time',
'Conf Rev',
]);
// content
const items =
Expand All @@ -1394,6 +1403,7 @@ export default class TPMulticastNaming extends LitElement {
item.appId,
item.vlanId,
item.vlanPriority,
item.confRev,
item.minTime,
item.maxTime,
];
Expand Down

0 comments on commit 147357f

Please sign in to comment.