mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-31 08:25:35 +00:00
Fix for open project error
This commit is contained in:
parent
1ff8f00397
commit
fa59471dd8
@ -165,7 +165,6 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
||||
.pipe(
|
||||
mergeMap((server: Server) => {
|
||||
this.server = server;
|
||||
this.setUpWS();
|
||||
return this.projectService.get(server, paramMap.get('project_id')).pipe(
|
||||
map(project => {
|
||||
return project;
|
||||
|
@ -19,6 +19,7 @@ import { AddBlankProjectDialogComponent } from './add-blank-project-dialog/add-b
|
||||
import { ChooseNameDialogComponent } from './choose-name-dialog/choose-name-dialog.component';
|
||||
import { NavigationDialogComponent } from './navigation-dialog/navigation-dialog.component';
|
||||
import { ConfirmationBottomSheetComponent } from './confirmation-bottomsheet/confirmation-bottomsheet.component';
|
||||
import { ToasterService } from '../../services/toaster.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-projects',
|
||||
@ -44,7 +45,8 @@ export class ProjectsComponent implements OnInit {
|
||||
private progressService: ProgressService,
|
||||
public dialog: MatDialog,
|
||||
private router: Router,
|
||||
private bottomSheet: MatBottomSheet
|
||||
private bottomSheet: MatBottomSheet,
|
||||
private toasterService: ToasterService
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
@ -100,7 +102,11 @@ export class ProjectsComponent implements OnInit {
|
||||
() => {
|
||||
this.refresh();
|
||||
},
|
||||
() => {},
|
||||
() => {
|
||||
this.refresh();
|
||||
this.progressService.deactivate();
|
||||
this.toasterService.error('Project was deleted.');
|
||||
},
|
||||
() => {
|
||||
this.progressService.deactivate();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user