mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-25 05:19:43 +00:00
Update log-console.component.ts
This commit is contained in:
parent
efdf98b869
commit
63987f5df8
@ -55,7 +55,14 @@ export class LogConsoleComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.nodeSubscription = this.projectWebServiceHandler.nodeNotificationEmitter.subscribe((event) => {
|
this.nodeSubscription = this.projectWebServiceHandler.nodeNotificationEmitter.subscribe((event) => {
|
||||||
let node: Node = event.event as Node;
|
let node: Node = event.event as Node;
|
||||||
let message = `Event received: ${event.action} - ${this.printNode(node)}.`
|
let message: string = '';
|
||||||
|
|
||||||
|
if (node.label) {
|
||||||
|
message = `Event received: ${event.action} - ${this.printNode(node)}.`;
|
||||||
|
} else {
|
||||||
|
message = `Event received: ${event.action} - ${node.name}.`;
|
||||||
|
}
|
||||||
|
|
||||||
this.showMessage({
|
this.showMessage({
|
||||||
type: 'map update',
|
type: 'map update',
|
||||||
message: message
|
message: message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user