diff --git a/frontend/src/app/sessions/user-sessions-wrapper/create-session/provision-workspace/provision-workspace.component.html b/frontend/src/app/sessions/user-sessions-wrapper/create-session/provision-workspace/provision-workspace.component.html index cb559dd5ae..da360deae3 100644 --- a/frontend/src/app/sessions/user-sessions-wrapper/create-session/provision-workspace/provision-workspace.component.html +++ b/frontend/src/app/sessions/user-sessions-wrapper/create-session/provision-workspace/provision-workspace.component.html @@ -21,7 +21,7 @@

Provision workspace

mat-flat-button color="primary" type="submit" - [disabled]="!projectSlug || !models" + [disabled]="!projectSlug || !models || sessionsRequested" > Start this training keyboard_arrow_right diff --git a/frontend/src/app/sessions/user-sessions-wrapper/create-session/provision-workspace/provision-workspace.component.ts b/frontend/src/app/sessions/user-sessions-wrapper/create-session/provision-workspace/provision-workspace.component.ts index 8abe9755ee..588edb1a2c 100644 --- a/frontend/src/app/sessions/user-sessions-wrapper/create-session/provision-workspace/provision-workspace.component.ts +++ b/frontend/src/app/sessions/user-sessions-wrapper/create-session/provision-workspace/provision-workspace.component.ts @@ -30,6 +30,8 @@ export class ProvisionWorkspaceComponent implements OnInit { persistentWorkspace: this.fb.control(false), }); + public sessionsRequested = false; + constructor( private userSessionService: UserSessionService, private projectService: ProjectService, @@ -56,6 +58,7 @@ export class ProvisionWorkspaceComponent implements OnInit { requestSessions(): void { if (this.projectSlug && this.models) { + this.sessionsRequested = true; this.sessionService .provisionWorkspace( this.projectSlug,