From 1d75fefb68c50168f48a9a8b6e1ddddbbe1c72a5 Mon Sep 17 00:00:00 2001 From: Rajnikant Lodhi Date: Mon, 20 Jun 2022 18:05:34 +0530 Subject: [PATCH 1/9] Resolve Allow Virtualbox, VMware and Docker templates to be created issue but not fully tested --- src/app/services/docker.service.ts | 3 ++- src/app/services/virtual-box.service.ts | 3 ++- src/app/services/vmware.service.ts | 3 ++- src/environments/environment.electron.prod.ts | 4 +++- src/environments/environment.electron.ts | 4 +++- src/environments/environment.github.prod.ts | 4 +++- src/environments/environment.prod.ts | 4 +++- src/environments/environment.ts | 4 +++- 8 files changed, 21 insertions(+), 8 deletions(-) diff --git a/src/app/services/docker.service.ts b/src/app/services/docker.service.ts index 3e6b06d8..eaf9b26d 100644 --- a/src/app/services/docker.service.ts +++ b/src/app/services/docker.service.ts @@ -1,4 +1,5 @@ import { Injectable } from '@angular/core'; +import { environment } from 'environments/environment'; import { Observable } from 'rxjs'; import { DockerImage } from '../models/docker/docker-image'; import { Server } from '../models/server'; @@ -18,7 +19,7 @@ export class DockerService { } getImages(server: Server): Observable { - return this.httpServer.get(server, '/compute/docker/images') as Observable; + return this.httpServer.get(server, `/computes/${environment.compute_id}/docker/images`) as Observable; } addTemplate(server: Server, dockerTemplate: any): Observable { diff --git a/src/app/services/virtual-box.service.ts b/src/app/services/virtual-box.service.ts index 88981d20..878f4bbb 100644 --- a/src/app/services/virtual-box.service.ts +++ b/src/app/services/virtual-box.service.ts @@ -1,4 +1,5 @@ import { Injectable } from '@angular/core'; +import { environment } from 'environments/environment'; import { Observable } from 'rxjs'; import { Server } from '../models/server'; import { VirtualBoxTemplate } from '../models/templates/virtualbox-template'; @@ -37,6 +38,6 @@ export class VirtualBoxService { } getVirtualMachines(server: Server): Observable { - return this.httpServer.get(server, '/compute/virtualbox/vms') as Observable; + return this.httpServer.get(server, `/computes/${environment.compute_id}/virtualbox/vms`) as Observable; } } diff --git a/src/app/services/vmware.service.ts b/src/app/services/vmware.service.ts index 0816afba..b2fea1de 100644 --- a/src/app/services/vmware.service.ts +++ b/src/app/services/vmware.service.ts @@ -1,4 +1,5 @@ import { Injectable } from '@angular/core'; +import { environment } from 'environments/environment'; import { Observable } from 'rxjs'; import { Server } from '../models/server'; import { VmwareTemplate } from '../models/templates/vmware-template'; @@ -30,6 +31,6 @@ export class VmwareService { } getVirtualMachines(server: Server): Observable { - return this.httpServer.get(server, '/compute/vmware/vms') as Observable; + return this.httpServer.get(server, `/computes/${environment.vm_compute_id}/vmware/vms`) as Observable; } } diff --git a/src/environments/environment.electron.prod.ts b/src/environments/environment.electron.prod.ts index 8ab128f7..e2db7605 100644 --- a/src/environments/environment.electron.prod.ts +++ b/src/environments/environment.electron.prod.ts @@ -2,5 +2,7 @@ export const environment = { solarputty_download_url: '', production: true, electron: true, - current_version:'v3' + current_version:'v3', + compute_id:'local', + vm_compute_id:'vm' }; diff --git a/src/environments/environment.electron.ts b/src/environments/environment.electron.ts index 49d53902..2fdc6d84 100644 --- a/src/environments/environment.electron.ts +++ b/src/environments/environment.electron.ts @@ -2,5 +2,7 @@ export const environment = { production: false, electron: true, solarputty_download_url: '', - current_version:'v3' + current_version:'v3', + compute_id:'local', + vm_compute_id:'vm' }; diff --git a/src/environments/environment.github.prod.ts b/src/environments/environment.github.prod.ts index 558a4e58..4cf191a7 100644 --- a/src/environments/environment.github.prod.ts +++ b/src/environments/environment.github.prod.ts @@ -3,5 +3,7 @@ export const environment = { electron: false, githubio: true, solarputty_download_url: '', - current_version:'v3' + current_version:'v3', + compute_id:'local', + vm_compute_id:'vm' }; diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 8e7d5498..25eca5d5 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -3,5 +3,7 @@ export const environment = { electron: false, githubio: false, solarputty_download_url: '', - current_version:'v3' + current_version:'v3', + compute_id:'local', + vm_compute_id:'vm' }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 69ce3604..1e335911 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -7,7 +7,9 @@ export const environment = { electron: false, githubio: false, solarputty_download_url: '', - current_version:'v3' + current_version:'v3', + compute_id:'local', + vm_compute_id:'vm' }; /* From a6b65fc8fec6224a53155392b7921257576ede2d Mon Sep 17 00:00:00 2001 From: Rajnikant Lodhi Date: Mon, 20 Jun 2022 18:11:55 +0530 Subject: [PATCH 2/9] Modify the unit test cases --- src/app/services/virtual-box.service.spec.ts | 2 +- src/app/services/vmware.service.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/services/virtual-box.service.spec.ts b/src/app/services/virtual-box.service.spec.ts index edcee5cf..f06651a1 100644 --- a/src/app/services/virtual-box.service.spec.ts +++ b/src/app/services/virtual-box.service.spec.ts @@ -106,7 +106,7 @@ describe('VirtualBoxService', () => { it('should get available virtual machines', inject([VirtualBoxService], (service: VirtualBoxService) => { service.getVirtualMachines(server).subscribe(); - const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_version}/compute/virtualbox/vms`); + const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_version}/computes/${environment.compute_id}/virtualbox/vms`); expect(req.request.method).toEqual('GET'); })); }); diff --git a/src/app/services/vmware.service.spec.ts b/src/app/services/vmware.service.spec.ts index 172ae2a1..55214f61 100644 --- a/src/app/services/vmware.service.spec.ts +++ b/src/app/services/vmware.service.spec.ts @@ -104,7 +104,7 @@ describe('VmwareService', () => { it('should get available virtual machines', inject([VmwareService], (service: VmwareService) => { service.getVirtualMachines(server).subscribe(); - const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_version}/compute/vmware/vms`); + const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_version}/computes/${environment.vm_compute_id}/vmware/vms`); expect(req.request.method).toEqual('GET'); })); }); From 40ffe84b7749c7e9971fe2cc708f8bd180fed07d Mon Sep 17 00:00:00 2001 From: Rajnikant Lodhi Date: Tue, 21 Jun 2022 08:59:18 +0530 Subject: [PATCH 3/9] Removed vm_compute_id --- src/app/services/vmware.service.spec.ts | 2 +- src/app/services/vmware.service.ts | 2 +- src/environments/environment.electron.prod.ts | 3 +-- src/environments/environment.electron.ts | 3 +-- src/environments/environment.github.prod.ts | 3 +-- src/environments/environment.prod.ts | 3 +-- src/environments/environment.ts | 3 +-- 7 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/app/services/vmware.service.spec.ts b/src/app/services/vmware.service.spec.ts index 55214f61..9a1f38a0 100644 --- a/src/app/services/vmware.service.spec.ts +++ b/src/app/services/vmware.service.spec.ts @@ -104,7 +104,7 @@ describe('VmwareService', () => { it('should get available virtual machines', inject([VmwareService], (service: VmwareService) => { service.getVirtualMachines(server).subscribe(); - const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_version}/computes/${environment.vm_compute_id}/vmware/vms`); + const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_version}/computes/${environment.compute_id}/vmware/vms`); expect(req.request.method).toEqual('GET'); })); }); diff --git a/src/app/services/vmware.service.ts b/src/app/services/vmware.service.ts index b2fea1de..6e051c80 100644 --- a/src/app/services/vmware.service.ts +++ b/src/app/services/vmware.service.ts @@ -31,6 +31,6 @@ export class VmwareService { } getVirtualMachines(server: Server): Observable { - return this.httpServer.get(server, `/computes/${environment.vm_compute_id}/vmware/vms`) as Observable; + return this.httpServer.get(server, `/computes/${environment.compute_id}/vmware/vms`) as Observable; } } diff --git a/src/environments/environment.electron.prod.ts b/src/environments/environment.electron.prod.ts index e2db7605..e858c20f 100644 --- a/src/environments/environment.electron.prod.ts +++ b/src/environments/environment.electron.prod.ts @@ -3,6 +3,5 @@ export const environment = { production: true, electron: true, current_version:'v3', - compute_id:'local', - vm_compute_id:'vm' + compute_id:'local' }; diff --git a/src/environments/environment.electron.ts b/src/environments/environment.electron.ts index 2fdc6d84..4127f766 100644 --- a/src/environments/environment.electron.ts +++ b/src/environments/environment.electron.ts @@ -3,6 +3,5 @@ export const environment = { electron: true, solarputty_download_url: '', current_version:'v3', - compute_id:'local', - vm_compute_id:'vm' + compute_id:'local' }; diff --git a/src/environments/environment.github.prod.ts b/src/environments/environment.github.prod.ts index 4cf191a7..963b2cc9 100644 --- a/src/environments/environment.github.prod.ts +++ b/src/environments/environment.github.prod.ts @@ -4,6 +4,5 @@ export const environment = { githubio: true, solarputty_download_url: '', current_version:'v3', - compute_id:'local', - vm_compute_id:'vm' + compute_id:'local' }; diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 25eca5d5..556ec8bd 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -4,6 +4,5 @@ export const environment = { githubio: false, solarputty_download_url: '', current_version:'v3', - compute_id:'local', - vm_compute_id:'vm' + compute_id:'local' }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 1e335911..0bb7a5fc 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -8,8 +8,7 @@ export const environment = { githubio: false, solarputty_download_url: '', current_version:'v3', - compute_id:'local', - vm_compute_id:'vm' + compute_id:'local' }; /* From 576c108da8021bbe799722c73fb8c99c62ed4266 Mon Sep 17 00:00:00 2001 From: Rajnikant Lodhi Date: Mon, 4 Jul 2022 14:40:27 +0530 Subject: [PATCH 4/9] I have added node menu controls confirmation action dialog in Webui missing prompt for mass state changes of project #1342 issue. --- src/app/app.module.ts | 2 ++ ...es-menu-confirmation-dialog.component.html | 18 +++++++++++ ...es-menu-confirmation-dialog.component.scss | 16 ++++++++++ ...menu-confirmation-dialog.component.spec.ts | 25 +++++++++++++++ ...odes-menu-confirmation-dialog.component.ts | 27 ++++++++++++++++ .../nodes-menu/nodes-menu.component.html | 8 ++--- .../nodes-menu/nodes-menu.component.ts | 31 +++++++++++++++++-- 7 files changed, 120 insertions(+), 7 deletions(-) create mode 100644 src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.html create mode 100644 src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.scss create mode 100644 src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.spec.ts create mode 100644 src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index c907b644..59d9e9f4 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -278,6 +278,7 @@ import { ImageManagerComponent } from './components/image-manager/image-manager. import { AddImageDialogComponent } from './components/image-manager/add-image-dialog/add-image-dialog.component'; import { DeleteAllImageFilesDialogComponent } from './components/image-manager/deleteallfiles-dialog/deleteallfiles-dialog.component'; import { UploadingProcessbarComponent } from './common/uploading-processbar/uploading-processbar.component'; +import { NodesMenuConfirmationDialogComponent } from './components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component'; @NgModule({ declarations: [ @@ -472,6 +473,7 @@ import { UploadingProcessbarComponent } from './common/uploading-processbar/uplo AddImageDialogComponent, DeleteAllImageFilesDialogComponent, UploadingProcessbarComponent, + NodesMenuConfirmationDialogComponent, ], imports: [ BrowserModule, diff --git a/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.html b/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.html new file mode 100644 index 00000000..5683855a --- /dev/null +++ b/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.html @@ -0,0 +1,18 @@ +
+
+
Confirm {{ confirmActionData.actionType | titlecase }} All
+
+
+ +
+
+ + +

Are you sure you want to {{confirmActionData.actionType}} all devices?

+
+ + + + diff --git a/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.scss b/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.scss new file mode 100644 index 00000000..b55af6fc --- /dev/null +++ b/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.scss @@ -0,0 +1,16 @@ +.close-btn{ + height: 30px; + width: 30px; + margin-left: 10px; + margin-bottom:10px +} +.close-icon{ + font-size: 15px; +} +.text-padding{ + padding: 15px 0 0 0; + +} +.mat-dialog-actions { + min-height: 31px; +} \ No newline at end of file diff --git a/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.spec.ts b/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.spec.ts new file mode 100644 index 00000000..26a42efd --- /dev/null +++ b/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { NodesMenuConfirmationDialogComponent } from './nodes-menu-confirmation-dialog.component'; + +describe('NodesMenuConfirmationDialogComponent', () => { + let component: NodesMenuConfirmationDialogComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ NodesMenuConfirmationDialogComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(NodesMenuConfirmationDialogComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.ts b/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.ts new file mode 100644 index 00000000..3c912534 --- /dev/null +++ b/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.ts @@ -0,0 +1,27 @@ +import { Component, Inject, OnInit } from '@angular/core'; +import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; + +@Component({ + selector: 'app-nodes-menu-confirmation-dialog', + templateUrl: './nodes-menu-confirmation-dialog.component.html', + styleUrls: ['./nodes-menu-confirmation-dialog.component.scss'], +}) +export class NodesMenuConfirmationDialogComponent implements OnInit { + confirmActionData = { + actionType: 'start', + isAction:false + }; + constructor( + @Inject(MAT_DIALOG_DATA) public data: any, + public dialogRef: MatDialogRef + ) {} + + ngOnInit(): void { + this.confirmActionData.actionType = this.data; + } + + confirmAction() { + this.confirmActionData.isAction = true + this.dialogRef.close(this.confirmActionData); + } +} diff --git a/src/app/components/project-map/nodes-menu/nodes-menu.component.html b/src/app/components/project-map/nodes-menu/nodes-menu.component.html index b495ad3c..7177ab12 100644 --- a/src/app/components/project-map/nodes-menu/nodes-menu.component.html +++ b/src/app/components/project-map/nodes-menu/nodes-menu.component.html @@ -12,7 +12,7 @@ matTooltip="Start/Resume all nodes" matTooltipClass="custom-tooltip" mat-icon-button - (click)="startNodes()" + (click)="confirmControlsActions('start')" class="menu-button" > play_arrow @@ -21,7 +21,7 @@ matTooltip="Suspend all nodes" matTooltipClass="custom-tooltip" mat-icon-button - (click)="suspendNodes()" + (click)="confirmControlsActions('suspend')" class="menu-button" > pause @@ -30,7 +30,7 @@ matTooltip="Stop all nodes" matTooltipClass="custom-tooltip" mat-icon-button - (click)="stopNodes()" + (click)="confirmControlsActions('stop')" class="menu-button" > stop @@ -39,7 +39,7 @@ matTooltip="Reload all nodes" matTooltipClass="custom-tooltip" mat-icon-button - (click)="reloadNodes()" + (click)="confirmControlsActions('reload')" class="menu-button" > replay diff --git a/src/app/components/project-map/nodes-menu/nodes-menu.component.ts b/src/app/components/project-map/nodes-menu/nodes-menu.component.ts index 839ccbbe..89fccc15 100644 --- a/src/app/components/project-map/nodes-menu/nodes-menu.component.ts +++ b/src/app/components/project-map/nodes-menu/nodes-menu.component.ts @@ -1,14 +1,16 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; -import { MapSettingsService } from '../../../services/mapsettings.service'; +import { MatDialog } from '@angular/material/dialog'; import { ElectronService } from 'ngx-electron'; import { NodesDataSource } from '../../../cartography/datasources/nodes-datasource'; import { Project } from '../../../models/project'; import { Server } from '../../../models/server'; +import { MapSettingsService } from '../../../services/mapsettings.service'; import { NodeService } from '../../../services/node.service'; +import { NodeConsoleService } from '../../../services/nodeConsole.service'; import { ServerService } from '../../../services/server.service'; import { SettingsService } from '../../../services/settings.service'; import { ToasterService } from '../../../services/toaster.service'; -import { NodeConsoleService } from '../../../services/nodeConsole.service'; +import { NodesMenuConfirmationDialogComponent } from './nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component'; @Component({ selector: 'app-nodes-menu', @@ -28,7 +30,8 @@ export class NodesMenuComponent { private serverService: ServerService, private settingsService: SettingsService, private mapSettingsService: MapSettingsService, - private electronService: ElectronService + private electronService: ElectronService, + private dialog: MatDialog ) {} async startConsoleForAllNodes() { @@ -83,4 +86,26 @@ export class NodesMenuComponent { this.toasterService.success('All nodes successfully reloaded'); }); } + public confirmControlsActions(type) { + const dialogRef = this.dialog.open(NodesMenuConfirmationDialogComponent, { + width: '500px', + maxHeight: '200px', + autoFocus: false, + disableClose: true, + data: type, + }); + + dialogRef.afterClosed().subscribe((confirmAction_result) => { + if (confirmAction_result.isAction && confirmAction_result.actionType == 'start') { + this.startNodes(); + } else if (confirmAction_result.isAction && confirmAction_result.actionType == 'stop') { + this.stopNodes(); + } else if (confirmAction_result.isAction && confirmAction_result.actionType == 'reload') { + this.reloadNodes(); + } else if (confirmAction_result.isAction && confirmAction_result.actionType == 'suspend') { + this.suspendNodes(); + } else { + } + }); + } } From 9c3667277c2ae412f953d6c061ea8b940017a9f4 Mon Sep 17 00:00:00 2001 From: Rajnikant Lodhi Date: Mon, 4 Jul 2022 15:03:49 +0530 Subject: [PATCH 5/9] Resolve/write an unit test case. --- ...es-menu-confirmation-dialog.component.html | 2 +- ...es-menu-confirmation-dialog.component.scss | 3 +++ ...menu-confirmation-dialog.component.spec.ts | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.html b/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.html index 5683855a..e1a15bb9 100644 --- a/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.html +++ b/src/app/components/project-map/nodes-menu/nodes-menu-confirmation-dialog/nodes-menu-confirmation-dialog.component.html @@ -1,6 +1,6 @@
-
Confirm {{ confirmActionData.actionType | titlecase }} All
+
Confirm {{ confirmActionData.actionType}} All
-
diff --git a/src/app/components/project-map/nodes-menu/nodes-menu.component.html b/src/app/components/project-map/nodes-menu/nodes-menu.component.html index 7177ab12..7414dc46 100644 --- a/src/app/components/project-map/nodes-menu/nodes-menu.component.html +++ b/src/app/components/project-map/nodes-menu/nodes-menu.component.html @@ -44,4 +44,14 @@ > replay + + diff --git a/src/app/components/project-map/nodes-menu/nodes-menu.component.ts b/src/app/components/project-map/nodes-menu/nodes-menu.component.ts index 89fccc15..f19dda53 100644 --- a/src/app/components/project-map/nodes-menu/nodes-menu.component.ts +++ b/src/app/components/project-map/nodes-menu/nodes-menu.component.ts @@ -86,6 +86,13 @@ export class NodesMenuComponent { this.toasterService.success('All nodes successfully reloaded'); }); } + + resetNodes() { + this.nodeService.resetAllNodes(this.server, this.project).subscribe(() => { + this.toasterService.success('Successfully reset all console connections'); + }); + } + public confirmControlsActions(type) { const dialogRef = this.dialog.open(NodesMenuConfirmationDialogComponent, { width: '500px', @@ -105,6 +112,7 @@ export class NodesMenuComponent { } else if (confirmAction_result.isAction && confirmAction_result.actionType == 'suspend') { this.suspendNodes(); } else { + this.resetNodes() } }); } diff --git a/src/app/services/node.service.ts b/src/app/services/node.service.ts index 1d5d71d7..3b70fadb 100644 --- a/src/app/services/node.service.ts +++ b/src/app/services/node.service.ts @@ -55,6 +55,9 @@ export class NodeService { reloadAll(server: Server, project: Project) { return this.httpServer.post(server, `/projects/${project.project_id}/nodes/reload`, {}); } + resetAllNodes(server: Server, project: Project) { + return this.httpServer.post(server, `/projects/${project.project_id}/nodes/console/reset`, {}); + } createFromTemplate( server: Server, From 379a39a98f2061f265abad994160485c71d011cb Mon Sep 17 00:00:00 2001 From: Rajnikant Lodhi Date: Wed, 6 Jul 2022 16:48:29 +0530 Subject: [PATCH 7/9] I have resolved Support for project importation #1344 issue --- src/app/components/project-map/project-map.component.html | 4 ++-- .../import-project-dialog/import-project-dialog.component.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/components/project-map/project-map.component.html b/src/app/components/project-map/project-map.component.html index fa9a4852..7ece4e04 100644 --- a/src/app/components/project-map/project-map.component.html +++ b/src/app/components/project-map/project-map.component.html @@ -139,11 +139,11 @@ -
+
-
+ +
{{ resultMessage }}
-
+