mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-28 04:02:32 +00:00
Fix error when suspending and configuring a packet filter on a link
(cherry picked from commit aeef3e74ede66d4bdf17105662795336e415a167)
This commit is contained in:
parent
642082e9fb
commit
a08f8c5963
@ -86,6 +86,7 @@ export class LinkWidget implements Widget {
|
|||||||
.filter((l) => {
|
.filter((l) => {
|
||||||
return (
|
return (
|
||||||
!l.capturing &&
|
!l.capturing &&
|
||||||
|
!l.suspend &&
|
||||||
(l.filters.bpf || l.filters.corrupt || l.filters.delay || l.filters.frequency_drop || l.filters.packet_loss)
|
(l.filters.bpf || l.filters.corrupt || l.filters.delay || l.filters.frequency_drop || l.filters.packet_loss)
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
@ -111,8 +112,7 @@ export class LinkWidget implements Widget {
|
|||||||
link_body
|
link_body
|
||||||
.filter((l) => {
|
.filter((l) => {
|
||||||
return (
|
return (
|
||||||
((!l.capturing && l.suspend)|| l.capturing && l.suspend) &&
|
l.suspend
|
||||||
!(l.filters.bpf || l.filters.corrupt || l.filters.delay || l.filters.frequency_drop || l.filters.packet_loss)
|
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
.append<SVGGElement>('g')
|
.append<SVGGElement>('g')
|
||||||
|
@ -63,9 +63,6 @@ export class LinkService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateLink(controller:Controller , link: Link) {
|
updateLink(controller:Controller , link: Link) {
|
||||||
link.x = Math.round(link.x);
|
|
||||||
link.y = Math.round(link.y);
|
|
||||||
|
|
||||||
return this.httpController.put<Link>(controller, `/projects/${link.project_id}/links/${link.link_id}`, link);
|
return this.httpController.put<Link>(controller, `/projects/${link.project_id}/links/${link.link_id}`, link);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user