mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-21 12:04:59 +00:00
Show the suspended status when we start a packet capture on the link.
This commit is contained in:
parent
c2410f0933
commit
9558b2137f
@ -52,13 +52,13 @@ export class InterfaceStatusWidget implements Widget {
|
||||
new LinkStatus(
|
||||
start_point.x,
|
||||
start_point.y,
|
||||
!l.capturing && l.suspend ? 'suspended' : l.source.status,
|
||||
(( !l.capturing && l.suspend) || ( l.capturing && l.suspend)) ? 'suspended' : l.source.status,
|
||||
sourcePort
|
||||
),
|
||||
new LinkStatus(
|
||||
end_point.x,
|
||||
end_point.y,
|
||||
!l.capturing && l.suspend ? 'suspended' : l.target.status,
|
||||
(( !l.capturing && l.suspend) || ( l.capturing && l.suspend)) ? 'suspended' : l.target.status,
|
||||
destinationPort
|
||||
),
|
||||
];
|
||||
|
@ -110,8 +110,7 @@ export class LinkWidget implements Widget {
|
||||
link_body
|
||||
.filter((l) => {
|
||||
return (
|
||||
!l.capturing &&
|
||||
l.suspend &&
|
||||
((!l.capturing && l.suspend)|| l.capturing && l.suspend) &&
|
||||
!(l.filters.bpf || l.filters.corrupt || l.filters.delay || l.filters.frequency_drop || l.filters.packet_loss)
|
||||
);
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user