diff --git a/src/app/applications/application.model/application.model.ts b/src/app/applications/application.model/application.model.ts index a00d2fc81d..7239a9b44d 100644 --- a/src/app/applications/application.model/application.model.ts +++ b/src/app/applications/application.model/application.model.ts @@ -85,7 +85,6 @@ export class Application { totalCreditsExtensionCredits: number = 0 totalLifetimeExtensionCredits: number = 0 show_member_names: boolean - allow_machines_starting: boolean = false project_application_member_applications: ProjectMemberApplication[] project_application_manager_comment: string project_application_testimonial_submitted: boolean diff --git a/src/app/projectmanagement/overview.component.html b/src/app/projectmanagement/overview.component.html index ed1865bd65..dc0727ea57 100644 --- a/src/app/projectmanagement/overview.component.html +++ b/src/app/projectmanagement/overview.component.html @@ -590,12 +590,6 @@

: 'Resource modification requested' }} - Start a VM id="projectSettingsCard" *ngIf=" project_application && + project_application.project_application_openstack_project && ((project_application | hasstatusinlist: Application_States.APPROVED) || (project_application | hasstatusinlist: Application_States.MODIFICATION_REQUESTED) || (project_application | hasstatusinlist: Application_States.MODIFICATION_DECLINED)) @@ -964,24 +959,6 @@

> -
  • -
    - - -
    -
  • diff --git a/src/app/projectmanagement/overview.component.ts b/src/app/projectmanagement/overview.component.ts index 09854ce9a0..ab77117465 100644 --- a/src/app/projectmanagement/overview.component.ts +++ b/src/app/projectmanagement/overview.component.ts @@ -560,25 +560,6 @@ export class OverviewComponent extends ApplicationBaseClassComponent implements ) } - /** - * Checks if user is able to start a machine, when the - * project is a SimpleVM project. - */ - isAbleToStart(): boolean { - if (this.resourceDataLoaded) { - if (!this.project_application?.project_application_openstack_project) { - if ( - this.vmsInUse < this.maximumVMs && - (this.project_application.user_is_admin || this.project_application.allow_machines_starting) - ) { - return true - } - } - } - - return false - } - /** * If the application is an openstack application, the requested/approved resources will be set for maximum VMs. * For SimpleVM also the VMs in use are set. @@ -653,19 +634,6 @@ export class OverviewComponent extends ApplicationBaseClassComponent implements ) } - toggleStartingOfMachines(): void { - this.toggleLocked = true - this.groupService.toggleStartingMachines(this.project_application.project_application_perun_id).subscribe( - (res: any): void => { - this.project_application.allow_machines_starting = res['allow_machines_starting'] - this.toggleLocked = false - }, - () => { - this.toggleLocked = false - } - ) - } - switchToggleLocked(check: boolean): void { this.toggleLocked = check }