From 8e338da896335623f6e30728838ca4d0cd86a975 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sun, 5 Feb 2023 10:07:26 +0800 Subject: [PATCH 1/2] Warn that VMware and VirtualBox support is deprecated --- .../add-virtual-box-template.component.ts | 1 + .../vmware/add-vmware-template/add-vmware-template.component.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/app/components/preferences/virtual-box/add-virtual-box-template/add-virtual-box-template.component.ts b/src/app/components/preferences/virtual-box/add-virtual-box-template/add-virtual-box-template.component.ts index 09a8100e..2924325e 100644 --- a/src/app/components/preferences/virtual-box/add-virtual-box-template/add-virtual-box-template.component.ts +++ b/src/app/components/preferences/virtual-box/add-virtual-box-template/add-virtual-box-template.component.ts @@ -37,6 +37,7 @@ export class AddVirtualBoxTemplateComponent implements OnInit { } ngOnInit() { + this.toasterService.warning(`VirtualBox VM support is deprecated and will be removed in a future version, please use Qemu VMs instead`); const controller_id = this.route.snapshot.paramMap.get('controller_id'); this.controllerService.get(parseInt(controller_id, 10)).then((controller:Controller ) => { this.controller = controller; diff --git a/src/app/components/preferences/vmware/add-vmware-template/add-vmware-template.component.ts b/src/app/components/preferences/vmware/add-vmware-template/add-vmware-template.component.ts index c765441d..10b945dd 100644 --- a/src/app/components/preferences/vmware/add-vmware-template/add-vmware-template.component.ts +++ b/src/app/components/preferences/vmware/add-vmware-template/add-vmware-template.component.ts @@ -37,6 +37,7 @@ export class AddVmwareTemplateComponent implements OnInit { } ngOnInit() { + this.toasterService.warning(`VMware VM support is deprecated and will be removed in a future version, please use Qemu VMs instead`); const controller_id = this.route.snapshot.paramMap.get('controller_id'); this.controllerService.get(parseInt(controller_id, 10)).then((controller:Controller ) => { this.controller = controller; From eff72dc5f88c356f064a02441510b0bdfe3d25aa Mon Sep 17 00:00:00 2001 From: grossmj Date: Sun, 5 Feb 2023 10:20:54 +0800 Subject: [PATCH 2/2] Fix tests --- .../add-virtual-box-template.component.ts | 2 +- .../vmware/add-vmware-template/add-vmware-template.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/preferences/virtual-box/add-virtual-box-template/add-virtual-box-template.component.ts b/src/app/components/preferences/virtual-box/add-virtual-box-template/add-virtual-box-template.component.ts index 2924325e..fc8d1e6b 100644 --- a/src/app/components/preferences/virtual-box/add-virtual-box-template/add-virtual-box-template.component.ts +++ b/src/app/components/preferences/virtual-box/add-virtual-box-template/add-virtual-box-template.component.ts @@ -37,7 +37,7 @@ export class AddVirtualBoxTemplateComponent implements OnInit { } ngOnInit() { - this.toasterService.warning(`VirtualBox VM support is deprecated and will be removed in a future version, please use Qemu VMs instead`); + this.toasterService.error(`VirtualBox VM support is deprecated and will be removed in a future version, please use Qemu VMs instead`); const controller_id = this.route.snapshot.paramMap.get('controller_id'); this.controllerService.get(parseInt(controller_id, 10)).then((controller:Controller ) => { this.controller = controller; diff --git a/src/app/components/preferences/vmware/add-vmware-template/add-vmware-template.component.ts b/src/app/components/preferences/vmware/add-vmware-template/add-vmware-template.component.ts index 10b945dd..bbccb1e7 100644 --- a/src/app/components/preferences/vmware/add-vmware-template/add-vmware-template.component.ts +++ b/src/app/components/preferences/vmware/add-vmware-template/add-vmware-template.component.ts @@ -37,7 +37,7 @@ export class AddVmwareTemplateComponent implements OnInit { } ngOnInit() { - this.toasterService.warning(`VMware VM support is deprecated and will be removed in a future version, please use Qemu VMs instead`); + this.toasterService.error(`VMware VM support is deprecated and will be removed in a future version, please use Qemu VMs instead`); const controller_id = this.route.snapshot.paramMap.get('controller_id'); this.controllerService.get(parseInt(controller_id, 10)).then((controller:Controller ) => { this.controller = controller;