mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-19 04:57:51 +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() {
|
||||
this.nodeSubscription = this.projectWebServiceHandler.nodeNotificationEmitter.subscribe((event) => {
|
||||
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({
|
||||
type: 'map update',
|
||||
message: message
|
||||
|
Loading…
Reference in New Issue
Block a user