-
+
Welcome to MiNET's new hosting service. It is still in beta, please report any problem
to our webmaster.
diff --git a/frontend/src/app/vm/vm.component.html b/frontend/src/app/vm/vm.component.html
index 48b483c..0122eef 100644
--- a/frontend/src/app/vm/vm.component.html
+++ b/frontend/src/app/vm/vm.component.html
@@ -242,6 +242,39 @@
{{'vm.systemInformation' | translate}}
+
@@ -298,6 +331,3 @@
{{'vm.ipHistory' | translate}}
{{'vm.charter.notsigned_2' | translate}} {{'vm.charter.notsigned_3' | translate}} {{'vm.charter.notsigned_4' | translate}}
-
-
-
diff --git a/frontend/src/app/vm/vm.component.ts b/frontend/src/app/vm/vm.component.ts
index deafb54..fd30d9c 100644
--- a/frontend/src/app/vm/vm.component.ts
+++ b/frontend/src/app/vm/vm.component.ts
@@ -40,6 +40,9 @@ export class VmComponent implements OnInit, OnDestroy {
popUpSSHkey = "";
popUpLoading = false;
renew_vm_status = "";
+ new_user_to_transfer="";
+ transfering_ownership=false;
+ transfering_request_message="";
constructor(
@@ -163,6 +166,22 @@ export class VmComponent implements OnInit, OnDestroy {
});
}
+ transfer_vm_ownership():void{
+ const data = {
+ "status" : "transfering_ownership",
+ "user": this.new_user_to_transfer
+ };
+ this.transfering_ownership = true;
+ this.http.patch(this.authService.SERVER_URL + '/vm/' + this.vmid, data).subscribe(rep => {
+ this.transfering_request_message = "success";
+ setTimeout(() => {this.transfering_ownership = false;
+ this.transfering_request_message = ""}, 1000);
+ }, error => {
+ this.transfering_ownership = false;
+ this.transfering_request_message = error.error["error"];
+ });
+ }
+
get_vm(vmid): void {
const vm = new Vm();