mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-03-05 21:51:38 +00:00
Update interface-status.ts
This commit is contained in:
parent
67aaaa8b2a
commit
50e2c02f93
@ -22,10 +22,12 @@ export class InterfaceStatusWidget implements Widget {
|
||||
const end_point: SVGPoint = link_path.node().getPointAtLength(link_path.node().getTotalLength() - 45);
|
||||
|
||||
if (link_path.node().getTotalLength() > 2 * 45 + 10) {
|
||||
statuses = [
|
||||
new LinkStatus(start_point.x, start_point.y, (l.capturing && l.suspend) ? 'suspended' : l.source.status),
|
||||
new LinkStatus(end_point.x, end_point.y, (l.capturing && l.suspend) ? 'suspended' : l.target.status)
|
||||
];
|
||||
if (l.source && l.target) {
|
||||
statuses = [
|
||||
new LinkStatus(start_point.x, start_point.y, (l.capturing && l.suspend) ? 'suspended' : l.source.status),
|
||||
new LinkStatus(end_point.x, end_point.y, (l.capturing && l.suspend) ? 'suspended' : l.target.status)
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user