From dc7c0edfb659216cf48645f17274b1e9ae81d7e4 Mon Sep 17 00:00:00 2001 From: Andrew Schlackman <72105194+sei-aschlackman@users.noreply.github.com> Date: Thu, 11 Apr 2024 10:41:31 -0400 Subject: [PATCH] change wmks retryConnectionInterval to a setting (#655) --- src/app/state/vsphere/vsphere.service.ts | 5 ++++- src/assets/config/settings.json | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/state/vsphere/vsphere.service.ts b/src/app/state/vsphere/vsphere.service.ts index ad17ff9..f6e72b3 100644 --- a/src/app/state/vsphere/vsphere.service.ts +++ b/src/app/state/vsphere/vsphere.service.ts @@ -22,6 +22,7 @@ import { VmResolution, } from '../../models/vm/vm-model'; import { VmStore } from './vsphere.store'; +import { ComnSettingsService } from '@cmusei/crucible-common'; declare var WMKS: any; // needed to check values @@ -68,6 +69,7 @@ export class VsphereService { private http: HttpClient, private vsphereService: ApiVsphereService, private vmStore: VmStore, + public settingsService: ComnSettingsService, @Inject(BASE_PATH) basePath: string, ) { this.apiUrl = basePath; @@ -217,7 +219,8 @@ export class VsphereService { changeResolution: this.model.isOwner, rescale: true, position: WMKS.CONST.Position.CENTER, - retryConnectionInterval: 5000, // Changed to 5 seconds. This affects initial connection to console. + retryConnectionInterval: + this.settingsService.settings.WMKS.RetryConnectionInterval, }); if (readOnly) { diff --git a/src/assets/config/settings.json b/src/assets/config/settings.json index 3ea05af..8388329 100644 --- a/src/assets/config/settings.json +++ b/src/assets/config/settings.json @@ -34,5 +34,8 @@ { "name": "Normal", "value": 60 }, { "name": "Slow", "value": 100 }, { "name": "Slowest", "value": 500 } - ] + ], + "WMKS": { + "RetryConnectionInterval": 5000 + } }