mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-18 23:08:14 +00:00
Fix Show/hide interface labels
This commit is contained in:
@ -6,7 +6,6 @@ import { SerialLinkWidget } from "./links/serial-link";
|
|||||||
import { EthernetLinkWidget } from "./links/ethernet-link";
|
import { EthernetLinkWidget } from "./links/ethernet-link";
|
||||||
import { MultiLinkCalculatorHelper } from "../helpers/multi-link-calculator-helper";
|
import { MultiLinkCalculatorHelper } from "../helpers/multi-link-calculator-helper";
|
||||||
import { InterfaceLabelWidget } from "./interface-label";
|
import { InterfaceLabelWidget } from "./interface-label";
|
||||||
import { CssFixer } from "../helpers/css-fixer";
|
|
||||||
import { InterfaceStatusWidget } from "./interface-status";
|
import { InterfaceStatusWidget } from "./interface-status";
|
||||||
|
|
||||||
|
|
||||||
@ -14,15 +13,17 @@ import { InterfaceStatusWidget } from "./interface-status";
|
|||||||
export class LinkWidget implements Widget {
|
export class LinkWidget implements Widget {
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private multiLinkCalculatorHelper: MultiLinkCalculatorHelper
|
private multiLinkCalculatorHelper: MultiLinkCalculatorHelper,
|
||||||
|
private interfaceLabelWidget: InterfaceLabelWidget,
|
||||||
|
private interfaceStatusWidget: InterfaceStatusWidget
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
public getInterfaceLabelWidget() {
|
public getInterfaceLabelWidget() {
|
||||||
return new InterfaceLabelWidget(new CssFixer());
|
return this.interfaceLabelWidget;
|
||||||
}
|
}
|
||||||
|
|
||||||
public getInterfaceStatusWidget() {
|
public getInterfaceStatusWidget() {
|
||||||
return new InterfaceStatusWidget();
|
return this.interfaceStatusWidget;
|
||||||
}
|
}
|
||||||
|
|
||||||
public draw(view: SVGSelection) {
|
public draw(view: SVGSelection) {
|
||||||
|
Reference in New Issue
Block a user