From b8ded15ef7fea7655e0506dbe8d913226be5020f Mon Sep 17 00:00:00 2001 From: piotrpekala7 <31202938+piotrpekala7@users.noreply.github.com> Date: Thu, 4 Jun 2020 03:02:17 +0200 Subject: [PATCH] Update project-map.component.ts --- src/app/components/project-map/project-map.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/components/project-map/project-map.component.ts b/src/app/components/project-map/project-map.component.ts index facdd0fa..7e2c1bb4 100644 --- a/src/app/components/project-map/project-map.component.ts +++ b/src/app/components/project-map/project-map.component.ts @@ -67,6 +67,7 @@ import { NodeAddedEvent } from '../template/template-list-dialog/template-list-d import { NotificationService } from '../../services/notification.service'; import { ThemeService } from '../../services/theme.service'; import { Title } from '@angular/platform-browser'; +import { NodeConsoleService } from '../../services/nodeConsole.service'; @Component({ @@ -156,7 +157,8 @@ export class ProjectMapComponent implements OnInit, OnDestroy { private bottomSheet: MatBottomSheet, private notificationService: NotificationService, private themeService: ThemeService, - private title: Title + private title: Title, + private nodeConsoleService: NodeConsoleService ) {} ngOnInit() { @@ -851,7 +853,9 @@ export class ProjectMapComponent implements OnInit, OnDestroy { } public ngOnDestroy() { + this.nodeConsoleService.openConsoles = 0; this.title.setTitle('GNS3 Web UI'); + this.drawingsDataSource.clear(); this.nodesDataSource.clear(); this.linksDataSource.clear();